Skip to main content

CWE-190: CWE-190: Integer Overflow or Wraparound

BaseStable🏆 #24 in Top 25 (2024)

Description

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

Technical Details

Structure
Simple
Vulnerability Mapping
ALLOWED

Applicable To

Languages
Languages
Platforms
Languages

🏆 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)

Frequently Asked Questions

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

CWE-190: CWE-190: Integer Overflow or Wraparound is a Common Weakness Enumeration (CWE) entry maintained by MITRE. Description

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 CWE-190: Integer Overflow or Wraparound?+

If exploited, CWE-190 (CWE-190: Integer Overflow or Wraparound) it can compromise DoS: Crash, Exit, or Restart, DoS: Resource Consumption (Memory), DoS: Instability and Modify Memory, leading to outcomes such as Scope: Availability This weakness can generally lead to undefined behavior and therefore crashes. When the calculated result is used for resource allocation, this weakness can cause too many (or too few) resources to be allocated, possibly enabling crashes if the product requests more resources than can be provided., Scope: Integrity If the value in question is important to data (as opposed to flow), simple data corruption has occurred. Also and if the overflow/wraparound results in other conditions such as buffer overflows.

How do you prevent or mitigate CWE-190: 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. Strategy: Language Selection Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. If possible, choose a language or compiler that performs automatic bounds checking. Strategy: Libraries or Frameworks Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [ REF-1482 ]. Use libraries or frameworks that make it easier to handle numbers without unexpected consequences. Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++). [ REF-106 ]

Which programming languages are affected by CWE-190: Integer Overflow or Wraparound?+

CWE-190 commonly affects Languages. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

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