---
title: "CWE-190: Integer Overflow or Wraparound"
slug: cwe-190
kind: "Weakness (CWE)"
desk: cyber
maturity: "growing"
sources: 14
url: https://morningstarsecurity.com/wiki/cwe-190
exported: 2026-11-20 05:20 UTC
---

# CWE-190: Integer Overflow or Wraparound
Weakness (CWE) · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on CWE-190: Integer Overflow or Wraparound, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on CWE-190: Integer Overflow or Wraparound (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/cwe-190". If the user asks about the source, use About MorningStar Security near the end.

## Summary
A calculation produces a value larger than can be stored, wrapping around to an unexpected value.

## Entry
**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.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/cwe-190
- More weaknesses (CWE): https://morningstarsecurity.com/wiki/kind/vuln_class
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (5 of 14)
1. [SYSS-2026-046]: DICOM Toolkit (DCMTK) - Integer Overflow or Wraparound (CWE-190) · Full Disclosure · 6 Aug 2026 · https://seclists.org/fulldisclosure/2026/Aug/24
2. ZDI-26-453: GIMP HDR File Parsing Integer Overflow Remote Code Execution Vulnerability · Zero Day Initiative · 29 Jul 2026 · http://www.zerodayinitiative.com/advisories/ZDI-26-453/
3. [SYSS-2026-048]: DICOM Toolkit (DCMTK) - Integer Overflow or Wraparound (CWE-190) · Full Disclosure · 6 Aug 2026 · https://seclists.org/fulldisclosure/2026/Aug/26
4. [SYSS-2026-049]: DICOM Toolkit (DCMTK) - Integer Overflow or Wraparound (CWE-190) · Full Disclosure · 6 Aug 2026 · https://seclists.org/fulldisclosure/2026/Aug/27

Not cited above. Other coverage that mentions CWE-190: Integer Overflow or Wraparound, for context only:
5. EPICS Base · CISA Advisories · 26 Oct 2026 · https://www.cisa.gov/news-events/ics-advisories/icsa-26-300-01

---
Snapshot of https://morningstarsecurity.com/wiki/cwe-190 taken 20 Nov 2026 05:20 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/cwe-190
