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

  • 9.8 Critical severity

    iOS and iPadOS: Buffer Copy without Checking Size of Input

    CVE-2025-24237AppleEPSS 1.64%

    A buffer overflow was addressed with improved bounds checking. This issue is fixed in iOS 18.4 and iPadOS 18.4, iPadOS 17.7.6, macOS Sequoia 15.4, macOS Sonoma 14.7.5, macOS Ventura 13.7.5, visionOS 2.4, watchOS 11.4. An app may be able to cause unexpected sys

  • 7.0 High severity

    Safari: Buffer Copy without Checking Size of Input

    CVE-2025-24209Apple

    A buffer overflow issue was addressed with improved memory handling. This issue is fixed in Safari 18.4, iOS 18.4 and iPadOS 18.4, iPadOS 17.7.6, macOS Sequoia 15.4, tvOS 18.4, watchOS 11.4. Processing maliciously crafted web content may lead to an unexpected

  • 8.8 High severity

    FortiNDR: Buffer Copy without Checking Size of Input

    CVE-2023-33302Fortinet

    A buffer copy without checking size of input ('classic buffer overflow') in Fortinet FortiMail webmail and administrative interface version 6.4.0 through 6.4.4 and before 6.2.6 and FortiNDR administrative interface version 7.2.0 and before 7.1.0 allows an auth

  • 7.5 High severity

    W6-s Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-28221Tenda

    Tenda W6_S v1.0.0.4_510 has a Buffer Overflow vulnerability in the set_local_time function, which allows remote attackers to cause web server crash via parameter time passed to the binary through a POST request.

  • 7.5 High severity

    W6-s Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-28220Tenda

    Tenda W6_S v1.0.0.4_510 has a Buffer Overflow vulnerability in the setcfm function, which allows remote attackers to cause web server crash via parameter funcpara1 passed to the binary through a POST request.

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2022-49754Linux

    In the Linux kernel, the following vulnerability has been resolved: Bluetooth: Fix a buffer overflow in mgmt_mesh_add() Smatch Warning: net/bluetooth/mgmt_util.c:375 mgmt_mesh_add() error: __memcpy() 'mesh_tx->param' too small (48 vs 50) Analysis: 'mesh_tx->pa

  • 7.5 High severity

    Tlr-2005ksh Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-28361Telesquare

    Unauthorized stack overflow vulnerability in Telesquare TLR-2005KSH v.1.1.4 allows a remote attacker to obtain sensitive information via the systemutil.cgi component.

  • 9.8 Critical severity

    Tlr-2005ksh Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-26002Telesquare

    Telesquare TLR-2005KSH 1.1.4 is affected by an unauthorized stack overflow vulnerability when requesting the admin.cgi parameter with setSyncTimeHost.

  • 7.8 High severity

    Ghostscript: Buffer Copy without Checking Size of Input

    CVE-2025-27834Artifex

    An issue was discovered in Artifex Ghostscript before 10.05.0. A buffer overflow occurs via an oversized Type 4 function in a PDF document to pdf/pdf_func.c.

  • 9.8 Critical severity

    Ghostscript: Buffer Copy without Checking Size of Input

    CVE-2025-27831Artifex

    An issue was discovered in Artifex Ghostscript before 10.05.0. The DOCXWRITE TXTWRITE device has a text buffer overflow via long characters to devices/vector/doc_common.c.

  • 7.8 High severity

    Ghostscript: Buffer Copy without Checking Size of Input

    CVE-2025-27830Artifex

    An issue was discovered in Artifex Ghostscript before 10.05.0. A buffer overflow occurs during serialization of DollarBlend in a font, for base/write_t1.c and psi/zfapi.c.

  • 7.8 High severity

    AutoCAD: Out-of-bounds Write

    CVE-2025-1430Autodesk

    A maliciously crafted SLDPRT file, when parsed through Autodesk AutoCAD, can force a Memory Corruption vulnerability. A malicious actor can leverage this vulnerability to execute arbitrary code in the context of the current process.

  • 7.5 High severity

    Rx3 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-29363Tenda

    Tenda RX3 US_RX3V1.0br_V16.03.13.11_multi_TDE01 is vulnerable to buffer overflow via the schedStartTime and schedEndTime parameters at /goform/saveParentControlInfo. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted packet.

  • 7.5 High severity

    Rx3 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-29362Tenda

    Tenda RX3 US_RX3V1.0br_V16.03.13.11_multi_TDE01 is vulnerable to Buffer Overflow via the list parameter at /goform/setPptpUserList. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted packet.

  • 7.5 High severity

    Rx3 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-29361Tenda

    Tenda RX3 US_RX3V1.0br_V16.03.13.11_multi_TDE01 is vulnerable to Buffer Overflow via the list parameter at /goform/SetVirtualServerCfg. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted packet.

  • 7.5 High severity

    Rx3 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-29360Tenda

    Tenda RX3 US_RX3V1.0br_V16.03.13.11_multi_TDE01 is vulnerable to Buffer Overflow via the time and timeZone parameters at /goform/SetSysTimeCfg. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted packet.

  • 7.5 High severity

    Rx3 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-29359Tenda

    Tenda RX3 US_RX3V1.0br_V16.03.13.11_multi_TDE01 is vulnerable to Buffer Overflow via the deviceId parameter at /goform/saveParentControlInfo. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted packet.

  • 7.5 High severity

    Rx3 Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-29358Tenda

    Tenda RX3 US_RX3V1.0br_V16.03.13.11_multi_TDE01 is vulnerable to Buffer Overflow via the firewallEn parameter at /goform/SetFirewallCfg. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted packet.

  • 9.8 Critical severity

    VPN: Buffer Copy without Checking Size of Input

    CVE-2025-25567Softether

    SoftEther VPN 5.02.5187 is vulnerable to Buffer Overflow in Internat.c via the UniToStrForSingleChars function. NOTE: the Supplier disputes this because the behavior only enables a local user to attack himself through the UI,

  • 9.8 Critical severity

    VPN: Buffer Copy without Checking Size of Input

    CVE-2025-25565Softether

    SoftEther VPN 5.02.5187 is vulnerable to Buffer Overflow in the Command.c file via the PtMakeCert and PtMakeCert2048 functions. NOTE: the Supplier disputes this because the behavior only allows a user to attack himself by typing a long string on a command line

  • 8.6 High severity

    Cisco IOS XR Software: Buffer Copy without Checking Size of Input

    CVE-2025-20115Cisco

    A vulnerability in confederation implementation for the Border Gateway Protocol (BGP) in Cisco IOS XR Software could allow an unauthenticated, remote attacker to cause a denial of service (DoS) condition. This vulnerability is due to a memory corruption t

  • 7.8 High severity

    Cobalt: Buffer Copy without Checking Size of Input

    CVE-2025-2017Ashlar-Vellum

    Ashlar-Vellum Cobalt CO File Parsing Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Ashlar-Vellum Cobalt. User interaction is required to exploit this vulne

  • 9.1 Critical severity

    HBS 3 Hybrid Backup Sync: Buffer Copy without Checking Size of Input

    CVE-2024-53695QNAP

    A buffer overflow vulnerability has been reported to affect HBS 3 Hybrid Backup Sync. If exploited, the vulnerability could allow remote attackers to modify memory or crash processes. We have already fixed the vulnerability in the following version: HBS 3 Hybr

  • 7.5 High severity

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

    CVE-2025-1899Tenda

    A vulnerability has been found in Tenda TX3 16.03.13.11_multi and classified as critical. Affected by this vulnerability is an unknown functionality of the file /goform/setPptpUserList. The manipulation of the argument list leads to buffer overflow. The attack

  • 7.5 High severity

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

    CVE-2025-1898Tenda

    A vulnerability, which was classified as critical, was found in Tenda TX3 16.03.13.11_multi. Affected is an unknown function of the file /goform/openSchedWifi. The manipulation of the argument schedStartTime/schedEndTime leads to buffer overflow. It is possibl

  • 7.5 High severity

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

    CVE-2025-1897TendaEPSS 1.22%

    A vulnerability, which was classified as critical, has been found in Tenda TX3 16.03.13.11_multi. This issue affects some unknown processing of the file /goform/SetNetControlList. The manipulation of the argument list leads to buffer overflow. The attack may b

  • 7.5 High severity

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

    CVE-2025-1896Tenda

    A vulnerability classified as critical was found in Tenda TX3 16.03.13.11_multi. This vulnerability affects unknown code of the file /goform/SetStaticRouteCfg. The manipulation of the argument list leads to buffer overflow. The attack can be initiated remotely

  • 7.5 High severity

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

    CVE-2025-1895Tenda

    A vulnerability classified as critical has been found in Tenda TX3 16.03.13.11_multi. This affects an unknown part of the file /goform/setMacFilterCfg. The manipulation of the argument deviceList leads to buffer overflow. It is possible to initiate the attack

  • 7.8 High severity

    Red Hat Enterprise Linux 10: Buffer Copy without Checking Size of Input

    CVE-2025-0689Red Hat

    When reading data from disk, the grub's UDF filesystem module utilizes the user controlled data length metadata to allocate its internal buffers. In certain scenarios, while iterating through disk sectors, it assumes the read size from the disk is always small

  • 9.8 Critical severity

    radare2: Buffer Copy without Checking Size of Input

    CVE-2025-1864Radareorg

    Improper Restriction of Operations within the Bounds of a Memory Buffer vulnerability in radareorg radare2 allows Overflow Buffers.This issue affects radare2: before <5.9.9.

  • 9.8 Critical severity

    EX1800T: Buffer Copy without Checking Size of Input

    CVE-2025-1852TOTOLINK

    A vulnerability has been found in Totolink EX1800T 9.1.0cu.2112_B20220316 and classified as critical. This vulnerability affects the function loginAuth of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument password leads to buffer overflow. The at

  • 7.8 High severity

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

    CVE-2025-1786Rizinorg

    A vulnerability was found in rizinorg rizin up to 0.7.4. It has been rated as critical. This issue affects the function msf_stream_directory_free in the library /librz/bin/pdb/pdb.c. The manipulation of the argument -P leads to buffer overflow. Local access is

  • 8.0 High severity

    A3002r Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-25635TOTOLINK

    TOTOlink A3002R V1.1.1-B20200824.0128 contains a buffer overflow vulnerability. The vulnerability arises from the improper input validation of the pppoe_dns1 parameter in the formIpv6Setup interface of /bin/boa.

  • 8.0 High severity

    A3002r Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-25610TOTOLINK

    TOTOlink A3002R V1.1.1-B20200824.0128 contains a buffer overflow vulnerability. The vulnerability arises from the improper input validation of the static_gw parameter in the formIpv6Setup interface of /bin/boa.

  • 8.0 High severity

    A3002r Firmware: Buffer Copy without Checking Size of Input

    CVE-2025-25609TOTOLINK

    TOTOlink A3002R V1.1.1-B20200824.0128 contains a buffer overflow vulnerability. The vulnerability arises from the improper input validation of the static_ipv6 parameter in the formIpv6Setup interface of /bin/boa

  • 9.8 Critical severity

    Vigor2620 Firmware: Buffer Copy without Checking Size of Input

    CVE-2024-51139DrayTek

    Buffer Overflow vulnerability in Vigor2620/LTE200 3.9.8.9 and earlier and Vigor2860/2925 3.9.8 and earlier and Vigor2862/2926 3.9.9.5 and earlier and Vigor2133/2762/2832 3.9.9 and earlier and Vigor165/166 4.2.7 and earlier and Vigor2135/2765/2766 4.4.5.1 and e

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2025-21780Linux

    In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: avoid buffer overflow attach in smu_sys_set_pp_table() It malicious user provides a small pptable through sysfs and then a bigger pptable, it may cause buffer overflow attack in fu

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2022-49058Linux

    In the Linux kernel, the following vulnerability has been resolved: cifs: potential buffer overflow in handling symlinks Smatch printed a warning: arch/x86/crypto/poly1305_glue.c:198 poly1305_update_arch() error: __memcpy() 'dctx->buf' too small (16 vs u32max)

  • 7.8 High severity

    Telecom Billing Management System: Buffer Copy without Checking Size of Input

    CVE-2025-1587SourceCodester

    A vulnerability was found in SourceCodester Telecom Billing Management System 1.0. It has been rated as critical. This issue affects the function addrecords of the file main.cpp of the component Add New Record. The manipulation of the argument name/phonenumber

  • 9.8 Critical severity

    Ac8 Firmware: Out-of-bounds Write

    CVE-2025-25663Tenda

    A vulnerability was found in Tenda AC8V4 V16.03.34.06. Affected is the function SUB_0046AC38 of the file /goform/WifiExtraSet. The manipulation of the argument wpapsk_crypto leads to stack-based buffer overflow.