Skip to main content

About CWE-120

MITRE lists these common consequences: Modify Memory, Execute Unauthorized Code or Commands, DoS: Crash, Exit, or Restart, DoS: Resource Consumption (CPU), affecting integrity, confidentiality, availability.

MITRE name
Buffer Copy without Checking Size of Input
Abstraction
Base: abstract, but detailed enough to infer detection and prevention methods
Status
Incomplete

Also Known As

  • Classic Buffer Overflow
  • Unbounded Transfer

Mitigations

  • Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking.
  • Consider adhering to the following rules when allocating and managing an application's memory:

Detection
MITRE lists these detection methods: Automated Static Analysis (high), Automated Static Analysis - Binary or Bytecode (high), Automated Static Analysis - Source Code (high), Architecture or Design Review (high), Automated Dynamic Analysis (moderate).

CWE-120 in the KEV Catalog

as of 2026-11-14
All KEV statistics→
  • 23 CISA KEV entries name Classic Buffer Overflow (CWE-120) in their CVE record, ranking 22nd among the 195 weaknesses named in the catalog.
  • CISA added 0 CWE-120 entries to the KEV catalog in 2024, 3 in 2025, and 1 so far in 2026.
  • Microsoft has the most CWE-120 entries in the CISA KEV catalog (6), followed by Apple (3).
  • CISA marks 17% of CWE-120 KEV entries (4 of 23) as known to be used in ransomware campaigns, compared with 20% of all KEV entries.
  • CISA's SSVC enrichment rates 43% of CWE-120 KEV entries with SSVC data (10 of 23) as automatable, compared with 41% across the catalog.

Related Attack Patterns

10 of 13 CAPEC patterns
CAPEC-100Overflow BuffersStandard · Severity Very High · Likelihood High
CAPEC-44Overflow Binary Resource FileDetailed · Severity Very High · Likelihood High
CAPEC-67String Format Overflow in syslog()Detailed · Severity Very High · Likelihood High
CAPEC-8Buffer Overflow in an API CallDetailed · Severity High · Likelihood High
CAPEC-9Buffer Overflow in Local Command-Line UtilitiesDetailed · Severity High · Likelihood High
CAPEC-10Buffer Overflow via Environment VariablesDetailed · Severity High · Likelihood High
CAPEC-14Client-side Injection-induced Buffer OverflowDetailed · Severity High · Likelihood Medium
CAPEC-24Filter Failure through Buffer OverflowDetailed · Severity High · Likelihood High
CAPEC-42MIME ConversionDetailed · Severity High · Likelihood High
CAPEC-45Buffer Overflow via Symbolic LinksDetailed · Severity High · Likelihood High

Showing the 10 most general patterns. All 13 related attack patterns on cwe.mitre.org →

CWE-120 Vulnerabilities

25 CVEs
CVECVSS
CVE-2025-43520KEV
Apple Multiple Products Classic Buffer Overflow Vulnerability
5.5
CVE-2022-37055KEV
D-Link Routers Buffer Overflow Vulnerability
9.8
CVE-2025-20333KEV
Cisco Secure Firewall Adaptive Security Appliance (ASA) and Secure Firewall Threat Defense (FTD) Buffer Overflow Vulnerability
9.9
CVE-2020-15069KEV
Sophos XG Firewall Buffer Overflow Vulnerability
9.8
CVE-2023-41064KEV
Apple iOS, iPadOS, and macOS ImageIO Buffer Overflow Vulnerability
7.8
CVE-2023-33010KEV
Zyxel Multiple Firewalls Buffer Overflow Vulnerability
9.8
CVE-2023-33009KEV
Zyxel Multiple Firewalls Buffer Overflow Vulnerability
9.8
CVE-2021-30983KEV
Apple iOS and iPadOS Buffer Overflow Vulnerability
7.8
CVE-2007-5659KEV
Adobe Acrobat and Reader Buffer Overflow Vulnerability
7.8
CVE-2013-1331KEV
Microsoft Office Buffer Overflow Vulnerability
7.8
CVE-2010-2572KEV
Microsoft PowerPoint Buffer Overflow Vulnerability
7.8
CVE-2006-2492KEV
Microsoft Word Malformed Object Pointer Vulnerability
8.8
CVE-2017-6862KEV
NETGEAR Multiple Devices Buffer Overflow Vulnerability
9.8
CVE-2016-6366KEV
Cisco Adaptive Security Appliance (ASA) SNMP Buffer Overflow Vulnerability
8.8
CVE-2019-11043KEV
Underflow in PHP-FPM can lead to RCE
8.7
CVE-2016-10174KEV
NETGEAR WNR2000v5 Router Buffer Overflow Vulnerability
9.8
CVE-2020-5135KEV
SonicWall SonicOS Buffer Overflow Vulnerability
9.8
CVE-2016-0099KEV
Microsoft Windows Secondary Logon Service Privilege Escalation Vulnerability
7.8
CVE-2013-0641KEV
Adobe Reader Buffer Overflow Vulnerability
7.8
CVE-2004-0210KEV
Microsoft Windows Privilege Escalation Vulnerability
7.8
CVE-2017-7269KEV
Microsoft Windows Server Buffer Overflow Vulnerability
9.8
CVE-2018-6789KEV
Exim Buffer Overflow Vulnerability
9.8
CVE-2020-15999KEV
Google Chrome FreeType Heap Buffer Overflow Vulnerability
9.6
CVE-2026-327469.8
CVE-2026-7854
D-Link DI-8100 POST Parameter url_rule.asp url_rule_asp buffer overflow
9.8

Frequently Asked Questions

What is CWE-120?→

CWE-120 (Buffer Copy without Checking Size of Input) is a MITRE CWE entry. The product copies an input buffer to an output buffer without verifying that the size of the input buffer is less than the size of the output buffer.

How many exploited vulnerabilities are classified as CWE-120?→

This database lists 25 CVE records mapped to CWE-120 by their CVE Numbering Authority. 23 of them are in the CISA Known Exploited Vulnerabilities catalog, and CISA links 4 to known ransomware campaigns. Examples include CVE-2025-43520, CVE-2022-37055, CVE-2025-20333.

Weakness description, consequences, and mitigations from the CWE List, © The MITRE Corporation, used under the CWE Terms of Use. CWE mappings come from each CVE record's CNA. Exploited-in-the-wild data from the CISA KEV catalog (CC0). This site is not affiliated with or endorsed by MITRE or CISA. Attack patterns from CAPEC 3.9, © The MITRE Corporation, used under the CAPEC Terms of Use.