CWE-190: Integer Overflow or Wraparound

BaseStableExploit Likelihood: Medium🏆 #24 in Top 25 (2024)

The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

View on MITRE
667Related CVEs
8.60Severity Score
Back to CWE Lookup

Technical Details

Structure
Simple
Vulnerability Mapping
ALLOWED

Applicable To

Languages
CNot Language-Specific
Platforms

🏆 CWE Top 25 Historical Ranking

2023:#14
Score: 5.89
634 CVEs
2024:#24↓10
Score: 8.60
667 CVEs
Trend:Improving (moved up 10 ranks)

Source-backed guidance

Additional facts reviewed against primary or authoritative security sources.

Combine analysis methods around the CWE-190 trust boundary

MITRE identifies automated static analysis, black-box testing, manual analysis, binary review, dynamic analysis as applicable detection approaches. Use them to identify arithmetic used for allocation sizes, offsets, lengths, counters, and security decisions, and prove operand ranges before promotions, conversions, or operations can wrap. Require a reproducible trace from the initiating input or state transition to the unsafe behavior, record coverage gaps, and confirm suspected findings dynamically where safe; no single technique establishes complete coverage.

CWE-190: detection methods and operational guidanceMITRE CWE

Check arithmetic before using its result as a size or offset

Account for integer promotions and conversions, then check the operands before addition, subtraction, multiplication, or left shift can overflow or wrap. Reject the operation when its mathematical result is not representable, especially when computing allocation sizes, pointer offsets, or array indexes. Document the limited cases where unsigned modular arithmetic is intentional.

INT30-C: Ensure that unsigned integer operations do not wrapCarnegie Mellon SEI

Apply lessons from CVE-2025-24985 in Microsoft Windows Fast FAT driver

NVD maps CVE-2025-24985 to CWE-190; an integer overflow or wraparound in filesystem processing could allow an unauthorized attacker to execute code locally. Use the case to validate on-disk sizes before arithmetic, use checked size calculations, and fuzz malformed filesystem images around integer and allocation boundaries.

CVE-2025-24985 DetailNIST National Vulnerability Database

Track CWE-190 as #24 in the 2024 CWE Top 25

CWE-190 ranked #24 in the 2024 CWE Top 25 with a score of 8.60. Use this annual evidence to prioritize systemic prevention, detection coverage, and recurring-root-cause metrics across the portfolio, while retaining asset exposure, exploitability, and business impact for severity decisions on individual findings.

2024 CWE Top 25 Most Dangerous Software WeaknessesMITRE CWE

Track CWE-190 as #14 in the 2023 CWE Top 25

CWE-190 ranked #14 in the 2023 CWE Top 25 with a score of 5.89. Use this annual evidence to prioritize systemic prevention, detection coverage, and recurring-root-cause metrics across the portfolio, while retaining asset exposure, exploitability, and business impact for severity decisions on individual findings.

2023 CWE Top 25 Most Dangerous Software WeaknessesMITRE CWE

Exercise arithmetic boundaries with UndefinedBehaviorSanitizer

Enable signed-integer-overflow, implicit-conversion, shift, and related UndefinedBehaviorSanitizer checks for supported native targets. Test zero, one, signed limits, unsigned limits, negative-to-unsigned conversion, multiplication and addition boundaries, and values just beyond protocol maxima. Preserve diagnostics and add regression cases, while separately reviewing intentional unsigned modular arithmetic and unexecuted paths.

UndefinedBehaviorSanitizerLLVM Project

Frequently Asked Questions

What is CWE-190: Integer Overflow or Wraparound?+

CWE-190: Integer Overflow or Wraparound is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

Is CWE-190 in the CWE Top 25 Most Dangerous Software Weaknesses?+

Yes. CWE-190 ranked #24 in the CWE Top 25 for 2024, associated with 667 CVEs that year. The CWE Top 25 highlights the most common and impactful software weaknesses based on real-world vulnerability data.

What are the security consequences of Integer Overflow or Wraparound?+

If exploited, CWE-190 (Integer Overflow or Wraparound) it can compromise Availability, Integrity, Confidentiality, Access Control and Other, leading to outcomes such as DoS: Crash, Exit, or Restart, DoS: Resource Consumption (Memory), DoS: Instability, Modify Memory, Execute Unauthorized Code or Commands and Bypass Protection Mechanism.

How do you prevent or mitigate Integer Overflow or Wraparound?+

Recommended mitigations for CWE-190 include: Ensure that all protocols are strictly defined, such that all out-of-bounds behavior can be identified simply, and require strict conformance to the protocol.

How is Integer Overflow or Wraparound detected?+

CWE-190 can be detected using Automated Static Analysis - Binary or Bytecode, Dynamic Analysis with Manual Results Interpretation, Manual Static Analysis - Source Code, Automated Static Analysis - Source Code and Architecture or Design Review. Combining automated tooling with manual review typically yields the best coverage.

Which programming languages are affected by Integer Overflow or Wraparound?+

CWE-190 commonly affects C and Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Integer Overflow or Wraparound?+

MITRE documents real CVEs mapped to CWE-190, including CVE-2025-46687, CVE-2025-27363, CVE-2021-43537, CVE-2019-19911 and CVE-2022-0545. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-190 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More

Advertisement