Classic Buffer Overflow (CWE-120)
CWE-120, Classic Buffer Overflow, is the MITRE CWE entry for weaknesses in which 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. The database tracks 25 CVE records mapped to CWE-120, and 23 of them are in the CISA Known Exploited Vulnerabilities catalog.
Updated
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- 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 patternsCAPEC-100Overflow BuffersStandard · Severity Very High · Likelihood High
Loading…
CAPEC-44Overflow Binary Resource FileDetailed · Severity Very High · Likelihood High
Loading…
CAPEC-67String Format Overflow in syslog()Detailed · Severity Very High · Likelihood High
Loading…
CAPEC-8Buffer Overflow in an API CallDetailed · Severity High · Likelihood High
Loading…
CAPEC-9Buffer Overflow in Local Command-Line UtilitiesDetailed · Severity High · Likelihood High
Loading…
CAPEC-10Buffer Overflow via Environment VariablesDetailed · Severity High · Likelihood High
Loading…
CAPEC-14Client-side Injection-induced Buffer OverflowDetailed · Severity High · Likelihood Medium
Loading…
CAPEC-24Filter Failure through Buffer OverflowDetailed · Severity High · Likelihood High
Loading…
CAPEC-42MIME ConversionDetailed · Severity High · Likelihood High
Loading…
CAPEC-45Buffer Overflow via Symbolic LinksDetailed · Severity High · Likelihood High
Loading…
Showing the 10 most general patterns. All 13 related attack patterns on cwe.mitre.org →
CWE-120 Vulnerabilities
25 CVEs| CVE | Title | Vendor | CVSS | EPSS | KEV | Published |
|---|---|---|---|---|---|---|
| CVE-2025-43520KEV Apple Multiple Products Classic Buffer Overflow Vulnerability | Apple Multiple Products Classic Buffer Overflow Vulnerability | Apple | 5.5 | 0.4% | KEV | 2025-12-12 |
| CVE-2022-37055KEV D-Link Routers Buffer Overflow Vulnerability | D-Link Routers Buffer Overflow Vulnerability | - | 9.8 | 55.5% | KEV | 2022-08-28 |
| CVE-2025-20333KEV Cisco Secure Firewall Adaptive Security Appliance (ASA) and Secure Firewall Threat Defense (FTD) Buffer Overflow Vulnerability | Cisco Secure Firewall Adaptive Security Appliance (ASA) and Secure Firewall Threat Defense (FTD) Buffer Overflow Vulnerability | Cisco | 9.9 | 72.0% | KEV | 2025-09-25 |
| CVE-2020-15069KEV Sophos XG Firewall Buffer Overflow Vulnerability | Sophos XG Firewall Buffer Overflow Vulnerability | - | 9.8 | 10.7% | KEV | 2020-06-29 |
| CVE-2023-41064KEV Apple iOS, iPadOS, and macOS ImageIO Buffer Overflow Vulnerability | Apple iOS, iPadOS, and macOS ImageIO Buffer Overflow Vulnerability | Apple | 7.8 | 53.4% | KEV | 2023-09-07 |
| CVE-2023-33010KEV Zyxel Multiple Firewalls Buffer Overflow Vulnerability | Zyxel Multiple Firewalls Buffer Overflow Vulnerability | Zyxel | 9.8 | 29.0% | KEV | 2023-05-24 |
| CVE-2023-33009KEV Zyxel Multiple Firewalls Buffer Overflow Vulnerability | Zyxel Multiple Firewalls Buffer Overflow Vulnerability | Zyxel | 9.8 | 28.1% | KEV | 2023-05-24 |
| CVE-2021-30983KEV Apple iOS and iPadOS Buffer Overflow Vulnerability | Apple iOS and iPadOS Buffer Overflow Vulnerability | Apple | 7.8 | 2.9% | KEV | 2021-08-24 |
| CVE-2007-5659KEV Adobe Acrobat and Reader Buffer Overflow Vulnerability | Adobe Acrobat and Reader Buffer Overflow Vulnerability | - | 7.8 | 87.3% | KEV | 2008-02-12 |
| CVE-2013-1331KEV Microsoft Office Buffer Overflow Vulnerability | Microsoft Office Buffer Overflow Vulnerability | - | 7.8 | 79.8% | KEV | 2013-06-12 |
| CVE-2010-2572KEV Microsoft PowerPoint Buffer Overflow Vulnerability | Microsoft PowerPoint Buffer Overflow Vulnerability | - | 7.8 | 58.6% | KEV | 2010-11-10 |
| CVE-2006-2492KEV Microsoft Word Malformed Object Pointer Vulnerability | Microsoft Word Malformed Object Pointer Vulnerability | - | 8.8 | 48.1% | KEV | 2006-05-20 |
| CVE-2017-6862KEV NETGEAR Multiple Devices Buffer Overflow Vulnerability | NETGEAR Multiple Devices Buffer Overflow Vulnerability | - | 9.8 | 45.7% | KEV | 2017-05-26 |
| CVE-2016-6366KEV Cisco Adaptive Security Appliance (ASA) SNMP Buffer Overflow Vulnerability | Cisco Adaptive Security Appliance (ASA) SNMP Buffer Overflow Vulnerability | - | 8.8 | 87.6% | KEV | 2016-08-18 |
| CVE-2019-11043KEV Underflow in PHP-FPM can lead to RCE | Underflow in PHP-FPM can lead to RCE | PHP | 8.7 | 99.8% | KEV | 2019-10-28 |
| CVE-2016-10174KEV NETGEAR WNR2000v5 Router Buffer Overflow Vulnerability | NETGEAR WNR2000v5 Router Buffer Overflow Vulnerability | - | 9.8 | 83.3% | KEV | 2017-01-30 |
| CVE-2020-5135KEV SonicWall SonicOS Buffer Overflow Vulnerability | SonicWall SonicOS Buffer Overflow Vulnerability | SonicWall | 9.8 | 26.9% | KEV | 2020-10-12 |
| CVE-2016-0099KEV Microsoft Windows Secondary Logon Service Privilege Escalation Vulnerability | Microsoft Windows Secondary Logon Service Privilege Escalation Vulnerability | - | 7.8 | 37.0% | KEV | 2016-03-09 |
| CVE-2013-0641KEV Adobe Reader Buffer Overflow Vulnerability | Adobe Reader Buffer Overflow Vulnerability | - | 7.8 | 32.3% | KEV | 2013-02-14 |
| CVE-2004-0210KEV Microsoft Windows Privilege Escalation Vulnerability | Microsoft Windows Privilege Escalation Vulnerability | - | 7.8 | 7.2% | KEV | 2004-07-14 |
| CVE-2017-7269KEV Microsoft Windows Server Buffer Overflow Vulnerability | Microsoft Windows Server Buffer Overflow Vulnerability | - | 9.8 | 99.8% | KEV | 2017-03-27 |
| CVE-2018-6789KEV Exim Buffer Overflow Vulnerability | Exim Buffer Overflow Vulnerability | - | 9.8 | 82.1% | KEV | 2018-02-08 |
| CVE-2020-15999KEV Google Chrome FreeType Heap Buffer Overflow Vulnerability | Google Chrome FreeType Heap Buffer Overflow Vulnerability | 9.6 | 63.9% | KEV | 2020-11-03 | |
| CVE-2026-32746 | - | GNU | 9.8 | 45.3% | 2026-03-13 | |
| CVE-2026-7854 D-Link DI-8100 POST Parameter url_rule.asp url_rule_asp buffer overflow | D-Link DI-8100 POST Parameter url_rule.asp url_rule_asp buffer overflow | D-Link | 9.8 | 5.9% | 2026-05-05 |
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.