Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
CWE-190: Integer Overflow or Wraparound
A calculation produces a value larger than can be stored, wrapping around to an unexpected value.
Definition
Integer overflow or wraparound occurs when an arithmetic calculation produces a value larger than the maximum representable value for its data type, causing the result to wrap around to an unexpected, typically much smaller value.
Abstraction Level
CWE-190 is classified as a base-level weakness 1, representing a fundamental category of integer arithmetic flaws.
Consequences
Integer overflow can lead to multiple severe security impacts:
-
Buffer overflow and code execution 2: When overflow results are used to calculate buffer sizes or memory addresses, attackers may write beyond allocated boundaries, potentially executing arbitrary code.
-
Heap corruption and denial of service 3: Overflowed values can corrupt heap metadata or allocate insufficient memory, causing memory corruption, crashes, or service disruption.
-
Out-of-bounds access 4: Wrapped-around values may be used as array indices or offsets, enabling reads from or writes to unintended memory locations.
Common Scenarios
Integer overflow typically occurs in size calculations for memory allocation, loop bounds, or array indexing. For example, adding two user-controlled integers without validation, or multiplying dimensions to calculate total buffer size, can produce wrapped values that bypass security checks designed for larger magnitudes.
The vulnerability is particularly dangerous because the wrapped value often appears valid to subsequent code—a small positive number rather than the intended large value—making detection difficult without explicit overflow checks.
In the news 5
- [SYSS-2026-046]: DICOM Toolkit (DCMTK) - Integer Overflow or Wraparound (CWE-190) · Full Disclosure
- ZDI-26-453: GIMP HDR File Parsing Integer Overflow Remote Code Execution Vulnerability · Zero Day Initiative
- [SYSS-2026-048]: DICOM Toolkit (DCMTK) - Integer Overflow or Wraparound (CWE-190) · Full Disclosure
- [SYSS-2026-049]: DICOM Toolkit (DCMTK) - Integer Overflow or Wraparound (CWE-190) · Full Disclosure
- EPICS Base · CISA Advisories
Sign in for the full story cards: summaries, tags and starring.