CWE-120: Buffer Copy without Checking Size of Input (Classic Buffer Overflow), published in 2023, page 5
Filter
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.
What the weakness is: CWE-120 at MITRE. All weaknesses
Related attack patterns (CAPEC): 13
- CAPEC-8 Buffer Overflow in an API Call Likelihood: High · Severity: High
- CAPEC-9 Buffer Overflow in Local Command-Line Utilities Likelihood: High · Severity: High
- CAPEC-10 Buffer Overflow via Environment Variables Likelihood: High · Severity: High
- CAPEC-14 Client-side Injection-induced Buffer Overflow Likelihood: Medium · Severity: High
- CAPEC-24 Filter Failure through Buffer Overflow Likelihood: High · Severity: High
- CAPEC-42 MIME Conversion Likelihood: High · Severity: High
- CAPEC-44 Overflow Binary Resource File Likelihood: High · Severity: Very High
- CAPEC-45 Buffer Overflow via Symbolic Links Likelihood: High · Severity: High
- CAPEC-46 Overflow Variables and Tags Likelihood: High · Severity: High
- CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
- CAPEC-67 String Format Overflow in syslog() Likelihood: High · Severity: Very High
- CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High
- CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High
The attack patterns MITRE's CAPEC relates to CWE-120, as MITRE names them. Credits.
Ask an AI about CWE-120
Show the prompt
Explain CWE-120: Buffer Copy without Checking Size of Input and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/120.html and https://cve.bz/cve/cwe/120?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 9.8CVE-2023-4041silabs gecko bootloaderEPSS 0.4%
Buffer Copy without Checking Size of Input ('Classic Buffer Overflow'), Out-of-bounds Write, Download of Code Without Integrity Check vulnerability in Silicon Labs Gecko Bootloader on ARM (Firmware Update File Parser modules) allows Code I…
- 5.5CVE-2022-29654nasm netwide assemblerEPSS 0.4%
Buffer overflow vulnerability in quote_for_pmake in asm/nasm.c in nasm before 2.15.05 allows attackers to cause a denial of service via crafted file.
- 7.5CVE-2021-32422dpic project dpicEPSS 0.8%
dpic 2021.01.01 has a Global buffer overflow in theyylex() function in main.c and reads out of the bound array.
- 6.5CVE-2020-35357EPSS 1.0%
A buffer overflow can occur when calculating the quantile value using the Statistics Library of GSL (GNU Scientific Library), versions 2.5 and 2.6. Processing a maliciously crafted input data for gsl_stats_quantile_from_sorted_data of the …
- 8.8CVE-2020-25887cesanta mongooseEPSS 0.7%
Buffer overflow in mg_resolve_from_hosts_file in Mongoose 6.18, when reading from a crafted hosts file.
- 8.8CVE-2020-24295freeimage project freeimageEPSS 1.4%
Buffer Overflow vulnerability in PSDParser.cpp::ReadImageLine() in FreeImage 3.19.0 [r1859] allows remote attackers to ru narbitrary code via use of crafted psd file.
- 6.5CVE-2020-24294freeimage project freeimageEPSS 0.9%
Buffer Overflow vulnerability in psdParser::UnpackRLE function in PSDParser.cpp in FreeImage 3.19.0 [r1859] allows remote attackers to cuase a denial of service via opening of crafted psd file.
- 8.8CVE-2020-24293freeimage project freeimageEPSS 1.5%
Buffer Overflow vulnerability in psdThumbnail::Read in PSDParser.cpp in FreeImage 3.19.0 [r1859] allows remote attackers to run arbitrary code via opening of crafted psd file.
- 8.8CVE-2020-24292freeimage project freeimageEPSS 1.5%
Buffer Overflow vulnerability in load function in PluginICO.cpp in FreeImage 3.19.0 [r1859] allows remote attackers to run arbitrary code via opening of crafted ico file.
- 6.5CVE-2020-22628librawEPSS 0.8%
Buffer Overflow vulnerability in LibRaw::stretch() function in libraw\src\postprocessing\aspect_ratio.cpp.
- 6.5CVE-2020-22524freeimage project freeimageEPSS 1.1%
Buffer Overflow vulnerability in FreeImage_Load function in FreeImage Library 3.19.0(r1828) allows attackers to cuase a denial of service via crafted PFM file.
- 7.8CVE-2020-22219flac project flacEPSS 0.8%
Buffer Overflow vulnerability in function bitwriter_grow_ in flac before 1.4.0 allows remote attackers to run arbitrary code via crafted input to the encoder.
- 4.4CVE-2020-21469postgresqlEPSS 0.4%
An issue was discovered in PostgreSQL 12.2 allows attackers to cause a denial of service via repeatedly sending SIGHUP signals. NOTE: this is disputed by the vendor because untrusted users cannot send SIGHUP signals; they can only be sent …
- 7.8CVE-2020-21428freeimage project freeimageEPSS 0.5%
Buffer Overflow vulnerability in function LoadRGB in PluginDDS.cpp in FreeImage 3.18.0 allows remote attackers to run arbitrary code and cause other impacts via crafted image file.
- 7.8CVE-2020-21427freeimage project freeimageEPSS 0.5%
Buffer Overflow vulnerability in function LoadPixelDataRLE8 in PluginBMP.cpp in FreeImage 3.18.0 allows remote attackers to run arbitrary code and cause other impacts via crafted image file.
- 7.8CVE-2020-21426freeimage project freeimageEPSS 0.5%
Buffer Overflow vulnerability in function C_IStream::read in PluginEXR.cpp in FreeImage 3.18.0 allows remote attackers to run arbitrary code and cause other impacts via crafted image file.
- 9.8CVE-2023-39750dlink dap-2660 firmwareEPSS 14%
D-Link DAP-2660 v1.13 was discovered to contain a buffer overflow via the f_ipv6_enable parameter at /bsc_ipv6. This vulnerability is exploited via a crafted POST request.
- 9.8CVE-2023-39749dlink dap-2660 firmwareEPSS 1.2%
D-Link DAP-2660 v1.13 was discovered to contain a buffer overflow via the component /adv_resource. This vulnerability is exploited via a crafted GET request.
- 9.8CVE-2023-39747tp-linkEPSS 8.7%
TP-Link WR841N V8, TP-Link TL-WR940N V2, and TL-WR941ND V5 were discovered to contain a buffer overflow via the radiusSecret parameter at /userRpm/WlanSecurityRpm.
- 7.5CVE-2023-39745tp-linkEPSS 0.7%
TP-Link TL-WR940N V2, TP-Link TL-WR941ND V5 and TP-Link TL-WR841N V8 were discovered to contain a buffer overflow via the component /userRpm/AccessCtrlAccessRulesRpm. This vulnerability allows attackers to cause a Denial of Service (DoS) v…
- 9.8CVE-2023-39454elecomEPSS 0.9%
Buffer overflow vulnerability exists in ELECOM wireless LAN routers, which may allow an unauthenticated attacker to execute arbitrary code.
- 9.8CVE-2023-39674dlink dir-880l a1 firmwareEPSS 1.4%
D-Link DIR-880 A1_FW107WWb08 was discovered to contain a buffer overflow via the function fgets.
- 9.8CVE-2023-39673tenda ac15 firmwareEPSS 0.8%
Tenda AC15 V1.0BR_V15.03.05.18_multi_TD01 was discovered to contain a buffer overflow via the function FUN_00010e34().
- 9.8CVE-2023-39672tenda wh450a firmwareEPSS 0.8%
Tenda WH450 v1.0.0.18 was discovered to contain a buffer overflow via the function fgets.
- 9.8CVE-2023-39671dlink dir-880l a1 firmwareEPSS 1.4%
D-Link DIR-880 A1_FW107WWb08 was discovered to contain a buffer overflow via the function FUN_0001be68.
- 9.8CVE-2023-39670tenda ac6 firmwareEPSS 0.8%
Tenda AC6 _US_AC6V1.0BR_V15.03.05.16 was discovered to contain a buffer overflow via the function fgets.
- 9.8CVE-2023-39668dlink dir-868l firmwareEPSS 1.4%
D-Link DIR-868L fw_revA_1-12_eu_multi_20170316 was discovered to contain a buffer overflow via the param_2 parameter in the inet_ntoa() function.
- 9.8CVE-2023-39667dlink dir-868l firmwareEPSS 1.4%
D-Link DIR-868L fw_revA_1-12_eu_multi_20170316 was discovered to contain a buffer overflow via the param_2 parameter in the FUN_0000acb4 function.
- 9.8CVE-2023-39666dlink dir-842 firmwareEPSS 1.4%
D-Link DIR-842 fw_revA_1-02_eu_multi_20151008 was discovered to contain multiple buffer overflows in the fgets function via the acStack_120 and acStack_220 parameters.
- 9.8CVE-2023-39665dlink dir-868l firmwareEPSS 1.4%
D-Link DIR-868L fw_revA_1-12_eu_multi_20170316 was discovered to contain a buffer overflow via the acStack_50 parameter.
- 6.7CVE-2023-4029lenovoEPSS 0.2%
A buffer overflow has been identified in the BoardUpdateAcpiDxe driver in some Lenovo ThinkPad products which may allow an attacker with local access and elevated privileges to execute arbitrary code.
- 6.7CVE-2023-4028lenovoEPSS 0.2%
A buffer overflow has been identified in the SystemUserMasterHddPwdDxe driver in some Lenovo Notebook products which may allow an attacker with local access and elevated privileges to execute arbitrary code.
- 6.7CVE-2023-34419lenovoEPSS 0.2%
A buffer overflow has been identified in the SetupUtility driver in some Lenovo Notebook products which may allow an attacker with local access and elevated privileges to execute arbitrary code.
- 5.5CVE-2023-38850msweet codedocEPSS 0.3%
Buffer Overflow vulnerability in Michaelrsweet codedoc v.3.7 allows an attacker to cause a denial of service via the codedoc.c:1742 comppnent.
- 9.8CVE-2023-29468ti wilink8-wifi-mcp8EPSS 10%
The Texas Instruments (TI) WiLink WL18xx MCP driver does not limit the number of information elements (IEs) of type XCC_EXT_1_IE_ID or XCC_EXT_2_IE_ID that can be parsed in a management frame. Using a specially crafted frame, a buffer over…
- 7.5CVE-2023-39386huaweiEPSS 0.4%
Vulnerability of input parameters being not strictly verified in the PMS module. Successful exploitation of this vulnerability may cause newly installed apps to fail to restart.
- 7.5CVE-2023-39389huaweiEPSS 0.4%
Vulnerability of input parameters being not strictly verified in the PMS module. Successful exploitation of this vulnerability may cause home screen unavailability.
- 7.5CVE-2023-39388huaweiEPSS 0.4%
Vulnerability of input parameters being not strictly verified in the PMS module. Successful exploitation of this vulnerability may cause home screen unavailability.
- 6.8CVE-2023-4265zephyrproject zephyrEPSS 0.8%
Potential buffer overflow vulnerabilities in the following locations: https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/usb/device/usb_dc_native_posix.c#L359 https://github.com/zephyrproject-rtos/zephyr/blob/main/drivers/usb/…
- 7.8CVE-2021-28835xnviewEPSS 0.3%
Buffer Overflow vulnerability in XNView before 2.50, allows local attackers to execute arbitrary code via crafted GEM bitmap file.
- 7.8CVE-2021-28427xnviewEPSS 0.3%
Buffer Overflow vulnerability in XNView version 2.49.3, allows local attackers to execute arbitrary code via crafted TIFF file.
- 5.5CVE-2020-35990foxit pdf readerEPSS 0.2%
Buffer Overflow vulnerability in cFilenameInit parameter in browseForDoc function in Foxit Software Foxit PDF Reader version 10.1.0.37527, allows local attackers to cause a denial of service (DoS) via crafted .pdf file.
- 7.8CVE-2020-28840matthiaswandel jheadEPSS 0.4%
Buffer Overflow vulnerability in jpgfile.c in Matthias-Wandel jhead version 3.04, allows local attackers to execute arbitrary code and cause a denial of service (DoS).
- 7.8CVE-2020-24222rockcarry ffjpegEPSS 0.3%
Buffer Overflow vulnerability in jfif_decode() function in rockcarry ffjpeg through version 1.0.0, allows local attackers to execute arbitrary code due to an issue with ALIGN.
- 6.7CVE-2023-28736mdadm project mdadmEPSS 0.2%
Buffer overflow in some Intel(R) SSD Tools software before version mdadm-4.2-rc2 may allow a privileged user to potentially enable escalation of privilege via local access.
- 9.8CVE-2023-37734ezsoftmagic mp3 audio converterEPSS 1.3%
EZ softmagic MP3 Audio Converter 2.7.3.700 was discovered to contain a buffer overflow.
- 4.3CVE-2023-36482samsungEPSS 0.3%
An issue was discovered in Samsung NFC S3NRN4V, S3NSN4V, S3NSEN4, SEN82AB, and S3NRN82. A buffer copy without checking its input size can cause an NFC service restart.
- 9.8CVE-2023-28561qualcomm qcn7606 firmwareEPSS 0.4%
Memory corruption in QESL while processing payload from external ESL device to firmware.
- 7.8CVE-2023-21649qualcommEPSS 0.1%
Memory corruption in WLAN while running doDriverCmd for an unspecific command.
- 9.8CVE-2023-39976clusterlabs libqbEPSS 1.2%
log_blackbox.c in libqb before 2.0.8 allows a buffer overflow via long log messages because the header size is not considered.