Skip to main content

CWE-680: Integer Overflow to Buffer Overflow

CompoundDraft

The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Chain

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-680: Integer Overflow to Buffer Overflow?+

CWE-680: Integer Overflow to Buffer Overflow is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product performs a calculation to determine how much memory to allocate, but an integer overflow can occur that causes less memory to be allocated than expected, leading to a buffer overflow.

What are the security consequences of Integer Overflow to Buffer Overflow?+

If exploited, CWE-680 (Integer Overflow to Buffer Overflow) it can compromise Integrity, Availability and Confidentiality, leading to outcomes such as Modify Memory, DoS: Crash, Exit, or Restart and Execute Unauthorized Code or Commands.

Which programming languages are affected by Integer Overflow to Buffer Overflow?+

CWE-680 commonly affects 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 to Buffer Overflow?+

MITRE documents real CVEs mapped to CWE-680, including CVE-2021-43537 and CVE-2017-1000121. 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-680 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