CyberSecBulletin

Buffer Copy without Checking Size of Input

CWE-120

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.

We track 2,043 vulnerabilities of this type. 100% are rated high or critical, and the average CVSS score is 8.6. 24 have been exploited in real attacks.

How this weakness is prevented

  • Requirements: Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, many languages that perform their own memory management, such as Java and Perl, are not subject to buffer overflows. Other languages, such as Ada and C#, typically provide overflow protection, but the protection can be disabled by the programmer. Be wary that a language's interface to native code may still be subject to overflows, even if the language itself is theoretically safe.
  • Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. Examples include the Safe C String Library (SafeStr) by Messier and Viega, and the Strsafe.h library from Microsoft. These libraries provide safer versions of overflow-prone string-handling functions.
  • Operation Build and Compilation: 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. D3-SFCV (Stack Frame Canary Validation) from D3FEND discusses canary-based detection in detail.
  • Architecture and Design: For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
  • Operation: Use a CPU and operating system that offers Data Execution Protection (using hardware NX or XD bits) or the equivalent techniques that simulate this feature in software, such as PaX. These techniques ensure that any instruction executed is exclusively at a memory address that is part of the code segment. For more information on these techniques see D3-PSEP (Process Segment Execution Prevention) from D3FEND.

Latest Buffer Copy without Checking Size of Input vulnerabilities

  • 8.8 High severity

    DIR-605L: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CVE-2026-5979D-Link

    A vulnerability was detected in D-Link DIR-605L 2.13B01. Affected by this vulnerability is the function formVirtualServ of the file /goform/formVirtualServ of the component POST Request Handler. The manipulation of the argument curTime results in buffer overfl

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50673D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to improper handling of the http_lanport parameter in the /webgl.asp endpoint.

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50670D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to improper handling of parameters in the /xwgl_bwr.asp endpoint. An attacker can exploit this vulnerability by sending a crafted HTTP GET request in the name, qq, and time parameters.

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50669D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 and DI-8003G 19.12.10A1 due to improper handling of the wan_ping parameter in the /wan_ping.asp endpoint.

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50667D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to improper handling of the iface parameter in the /wan_line_detection.asp endpoint.

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50666D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to improper handling of multiple parameters in the /web_post.asp endpoint. An attacker can exploit this vulnerability by sending a crafted HTTP GET request in parameters such as name, en,

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50665D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to improper handling of input parameters in the /web_keyword.asp endpoint. An attacker can exploit this vulnerability by sending a crafted HTTP GET request via the name, en, time, mem_gb23

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50653D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to improper handling of the name and mem parameters in the /time_group.asp endpoint.

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50650D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to inadequate validation of input size in the routes_static parameter in the /router.asp endpoint.

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50649D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to improper input validation in the vlan_name parameter in the /shut_set.asp endpoint.

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50646D-Link

    A buffer overflow vulnerability exists in D-Link DI-8003 16.07.26A1 due to insufficient input validation on the name parameter in the /qos_type_asp.asp endpoint.

  • 7.5 High severity

    Di-8003 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-50645D-Link

    A vulnerability has been discovered in D-Link DI-8003 16.07.26A1, which can lead to a buffer overflow when the s parameter in the pppoe_list_opt.asp endpoint is manipulated. By sending a crafted request with an excessively large value for the s parameter, an a

  • 7.5 High severity

    Di-8100 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-52222D-Link

    D-Link DI-8003 v16.07.26A1, DI-8500 v16.07.26A1; DI-8003G v17.12.21A1, DI-8200G v17.12.20A1, DI-8200 v16.07.26A1, DI-8400 v16.07.26A1, DI-8004w v16.07.26A1, DI-8100 v16.07.26A1, and DI-8100G v17.12.20A1 were discovered to contain a buffer overflow via the rd_e

  • 7.5 High severity

    Di-8300 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-45059D-Link

    D-Link DI-8300 v16.07.26A1 was discovered to contain a buffer overflow via the fn parameter in the tgfile_htm function. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.

  • 7.5 High severity

    Di-8300 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-45058D-Link

    D-Link DI-8300 v16.07.26A1 was discovered to contain a buffer overflow via the fx parameter in the jingx_asp function. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.

  • 7.5 High severity

    Di-8300 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-45057D-Link

    D-Link DI-8300 v16.07.26A1 was discovered to contain a buffer overflow via the ip parameter in the ip_position_asp function. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.

  • 7.5 High severity

    Oai-cn5g-amf: Buffer Copy without Checking Size of Input

    CVE-2026-30075Openairinterface

    OpenAirInterface Version 2.2.0 has a Buffer Overflow vulnerability in processing UplinkNASTransport containing Authentication Response containing a NAS PDU with oversize response (For example 100 byte). The response is decoded by AMF and passed to the AUSF com

  • 9.8 Critical severity

    Exynos W1000 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-52908Samsung

    An issue was discovered in the Wi-Fi driver in Samsung Mobile Processor and Wearable Processor Exynos 980, 850, 1280, 1330, 1380, 1480, 1580, W920, W930, and W1000. Incorrect Handling of the NL80211 vendor command leads to a buffer overflow via a certain ioctl

  • 9.8 Critical severity

    LibRaw: Integer Overflow or Wraparound

    CVE-2026-24660LibRaw

    A heap-based buffer overflow vulnerability exists in the x3f_load_huffman functionality of LibRaw Commit d20315b. A specially crafted malicious file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.

  • 9.8 Critical severity

    LibRaw: Incorrect Calculation of Buffer Size

    CVE-2026-20911LibRaw

    A heap-based buffer overflow vulnerability exists in the HuffTable::initval functionality of LibRaw Commit 0b56545 and Commit d20315b. A specially crafted malicious file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger th

  • 9.8 Critical severity

    LibRaw: Integer Overflow or Wraparound

    CVE-2026-20889LibRaw

    A heap-based buffer overflow vulnerability exists in the x3f_thumb_loader functionality of LibRaw Commit d20315b. A specially crafted malicious file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.

  • 9.8 Critical severity

    Exynos W1000 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-52909Samsung

    An issue was discovered in the Wi-Fi driver in Samsung Mobile Processor and Wearable Processor Exynos 980, 850, 1280, 1330, 1380, 1480, 1580, W920, W930, and W1000. Incorrect Handling of the NL80211 vendor command leads to a buffer overflow via a certain ioctl

  • 9.8 Critical severity

    Firefox: Out-of-bounds Write

    CVE-2026-5734Mozilla

    Memory safety bugs present in Firefox ESR 140.9.0, Thunderbird ESR 140.9.0, Firefox 149.0.1 and Thunderbird 149.0.1. Some of these bugs showed evidence of memory corruption and we presume that with enough effort some of these could have been exploited to run a

  • 8.8 High severity

    M3: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CVE-2026-5567Tenda

    A flaw has been found in Tenda M3 1.0.0.10. This vulnerability affects the function setAdvPolicyData of the file /goform/setAdvPolicyData of the component Destination Handler. Executing a manipulation of the argument policyType can lead to buffer overflow. The

  • 8.8 High severity

    HiPER 1250GW: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CVE-2026-5566UTT

    A vulnerability was detected in UTT HiPER 1250GW up to 3.2.7-210907-180535. This affects the function strcpy of the file /goform/formNatStaticMap. Performing a manipulation of the argument NatBind results in buffer overflow. Remote exploitation of the attack i

  • 7.8 High severity

    Linux: Out-of-bounds Write

    CVE-2026-31401Linux

    In the Linux kernel, the following vulnerability has been resolved: HID: bpf: prevent buffer overflow in hid_hw_request right now the returned value is considered to be always valid. However, when playing with HID-BPF, the return value can be arbitrary big, be

  • 9.8 Critical severity

    A3600r Firmware: Buffer Copy without Checking Size of Input

    CVE-2026-31027TOTOLINK

    TOTOlink A3600R v5.9c.4959 contains a buffer overflow vulnerability in the setAppEasyWizardConfig interface of /lib/cste_modules/app.so. The vulnerability occurs because the rootSsid parameter is not properly validated for length, allowing remote attackers to

  • 8.8 High severity

    Chrome: Buffer Copy without Checking Size of Input

    CVE-2026-5279Google

    Object corruption in V8 in Google Chrome prior to 146.0.7680.178 allowed a remote attacker to execute arbitrary code inside a sandbox via a crafted HTML page. (Chromium security severity: High)

  • 7.8 High severity

    Zephyr: Buffer Copy without Checking Size of Input

    CVE-2026-1679Zephyrproject-rtos

    The eswifi socket offload driver copies user-provided payloads into a fixed buffer without checking available space; oversized sends overflow `eswifi->buf`, corrupting kernel memory (CWE-120). Exploit requires local code that can call the socket send API; no r

  • 8.8 High severity

    LR350: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CVE-2026-4976TOTOLINK

    A vulnerability was found in Totolink LR350 9.3.5u.6369_B20220309. This vulnerability affects the function setWiFiGuestCfg of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument ssid results in buffer overflow. The attack can be launched remotely.

  • 8.8 High severity

    HiPER 1250GW: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CVE-2026-4862UTT

    A security vulnerability has been detected in UTT HiPER 1250GW up to 3.2.7-210907-180535. This issue affects the function strcpy of the file /goform/formConfigDnsFilterGlobal of the component Parameter Handler. Such manipulation of the argument GroupName leads

  • 7.5 High severity

    iOS and iPadOS: Buffer Copy without Checking Size of Input

    CVE-2026-28875Apple

    A buffer overflow was addressed with improved bounds checking. This issue is fixed in iOS 26.4 and iPadOS 26.4. A remote attacker may be able to cause a denial-of-service.

  • 8.8 High severity

    Safari: Out-of-bounds Read

    CVE-2026-28859Apple

    The issue was addressed with improved memory handling. This issue is fixed in Safari 26.4, iOS 26.4 and iPadOS 26.4, macOS Tahoe 26.4, tvOS 26.4, visionOS 26.4, watchOS 26.4. A malicious website may be able to process restricted web content outside the sandbox

  • 9.8 Critical severity

    iOS and iPadOS: Buffer Copy without Checking Size of Input

    CVE-2026-28858Apple

    A buffer overflow was addressed with improved bounds checking. This issue is fixed in iOS 26.4 and iPadOS 26.4. A remote user may be able to cause unexpected system termination or corrupt kernel memory.

  • 8.8 High severity

    Safari: Out-of-bounds Read

    CVE-2026-28857Apple

    The issue was addressed with improved memory handling. This issue is fixed in Safari 26.4, iOS 26.4 and iPadOS 26.4, macOS Tahoe 26.4, visionOS 26.4. Processing maliciously crafted web content may lead to an unexpected process crash.

  • 8.8 High severity

    Safari: Out-of-bounds Write

    CVE-2026-20664Apple

    The issue was addressed with improved memory handling. This issue is fixed in Safari 26.4, iOS 26.4 and iPadOS 26.4, macOS Tahoe 26.4, visionOS 26.4. Processing maliciously crafted web content may lead to an unexpected process crash.

  • 8.2 High severity

    NGINX Open Source: Heap-based Buffer Overflow

    CVE-2026-27654F5EPSS 26.5%

    NGINX Open Source and NGINX Plus have a vulnerability in the ngx_http_dav_module module that might allow an attacker to trigger a buffer overflow to the NGINX worker process; this vulnerability may result in termination of the NGINX worker process or modificat

  • 7.5 High severity

    Firefox: Buffer Copy without Checking Size of Input

    CVE-2026-4729Mozilla

    Memory safety bugs present in Firefox 148 and Thunderbird 148. Some of these bugs showed evidence of memory corruption and we presume that with enough effort some of these could have been exploited to run arbitrary code. This vulnerability was fixed in Firefox

  • 7.5 High severity

    Firefox: Buffer Copy without Checking Size of Input

    CVE-2026-4721Mozilla

    Memory safety bugs present in Firefox ESR 115.33, Firefox ESR 140.8, Thunderbird ESR 140.8, Firefox 148 and Thunderbird 148. Some of these bugs showed evidence of memory corruption and we presume that with enough effort some of these could have been exploited

  • 7.5 High severity

    Firefox: Buffer Copy without Checking Size of Input

    CVE-2026-4720Mozilla

    Memory safety bugs present in Firefox ESR 140.8, Thunderbird ESR 140.8, Firefox 148 and Thunderbird 148. Some of these bugs showed evidence of memory corruption and we presume that with enough effort some of these could have been exploited to run arbitrary cod