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

  • 7.5 High severity

    mbed: Buffer Copy without Checking Size of Input

    CVE-2024-48981Mbed

    An issue was discovered in MBed OS 6.16.0. During processing of HCI packets, the software dynamically determines the length of the packet header by looking up the identifying first byte and matching it against a table of possible lengths. The initial parsing f

  • 7.8 High severity

    macOS: Buffer Copy without Checking Size of Input

    CVE-2024-44307Apple

    A buffer overflow issue was addressed with improved memory handling. This issue is fixed in macOS Sonoma 14.6. An app may be able to execute arbitrary code with kernel privileges.

  • 7.8 High severity

    macOS: Buffer Copy without Checking Size of Input

    CVE-2024-44306Apple

    A buffer overflow issue was addressed with improved memory handling. This issue is fixed in macOS Sonoma 14.6. An app may be able to execute arbitrary code with kernel privileges.

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2024-50282Linux

    In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: add missing size check in amdgpu_debugfs_gprwave_read() Avoid a possible buffer overflow if size is larger than 4K. (cherry picked from commit f5d873f5825b40d886d03bd2aede91d4cf002

  • 9.8 Critical severity

    lib60870: Buffer Copy without Checking Size of Input

    CVE-2024-45971MZ Automation

    Multiple Buffer overflows in the MMS Client in MZ Automation LibIEC61850 before commit 1f52be9ddeae00e69cd43e4cac3cb4f0c880c4f0 allow a malicious server to cause a stack-based buffer overflow via the MMS IdentifyResponse message.

  • 9.8 Critical severity

    lib60870: Buffer Copy without Checking Size of Input

    CVE-2024-45970MZ Automation

    Multiple Buffer overflows in the MMS Client in MZ Automation LibIEC61850 before commit ac925fae8e281ac6defcd630e9dd756264e9c5bc allow a malicious server to cause a stack-based buffer overflow via the MMS FileDirResponse message.

  • 8.8 High severity

    tsmuxer: Buffer Copy without Checking Size of Input

    CVE-2024-49778Justdan96

    A heap-based buffer overflow in tsMuxer version nightly-2024-05-12-02-01-18 allows attackers to cause Denial of Service (DoS) and Code Execution via a crafted MOV video file.

  • 8.8 High severity

    tsmuxer: Buffer Copy without Checking Size of Input

    CVE-2024-49777Justdan96

    A heap-based buffer overflow in tsMuxer version nightly-2024-03-14-01-51-12 allows attackers to cause Denial of Service (DoS), Information Disclosure and Code Execution via a crafted MKV video file.

  • 8.8 High severity

    tsmuxer: Buffer Copy without Checking Size of Input

    CVE-2024-41209Justdan96

    A heap-based buffer overflow in tsMuxer version nightly-2024-03-14-01-51-12 allows attackers to cause Denial of Service (DoS) and Code Execution via a crafted MOV video file.

  • 7.5 High severity

    Valid Host header field can cause Apache Traffic Server to crash on some platforms.

    CVE-2024-50305Apache

    Valid Host header field can cause Apache Traffic Server to crash on some platforms. This issue affects Apache Traffic Server: from 9.2.0 through 9.2.5. Users are recommended to upgrade to version 9.2.6, which fixes the issue, or 10.0.2, which does not have the

  • 9.8 Critical severity

    glib: Buffer Copy without Checking Size of Input

    CVE-2024-52533GNOMEEPSS 1.51%

    gio/gsocks4aproxy.c in GNOME GLib before 2.82.1 has an off-by-one error and resultant buffer overflow because SOCKS4_CONN_MSG_LEN is not sufficient for a trailing '\0' character.

  • 9.8 Critical severity

    tew-820ap: Buffer Copy without Checking Size of Input

    CVE-2024-50667TRENDnetEPSS 6.67%

    The boa httpd of Trendnet TEW-820AP 1.01.B01 has a stack overflow vulnerability in /boafrm/formIPv6Addr, /boafrm/formIpv6Setup, /boafrm/formDnsv6. The reason is that the check of ipv6 address is not sufficient, which allows attackers to construct payloads for

  • 7.8 High severity

    ghostscript: Buffer Copy without Checking Size of Input

    CVE-2024-46952Artifex

    An issue was discovered in pdf/pdf_xref.c in Artifex Ghostscript before 10.04.0. There is a buffer overflow during handling of a PDF XRef stream (related to W array values).

  • 9.8 Critical severity

    neuron: Buffer Copy without Checking Size of Input

    CVE-2024-10964Emqx

    A vulnerability classified as critical has been found in emqx neuron up to 2.10.0. Affected is the function handle_add_plugin in the library cmd.library of the file plugins/restful/plugin_handle.c. The manipulation leads to buffer overflow. It is possible to l

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2024-50131Linux

    In the Linux kernel, the following vulnerability has been resolved: tracing: Consider the NULL character when validating the event length strlen() returns a string length excluding the null byte. If the string length equals to the maximum buffer length, the bu

  • 7.8 High severity

    Airport Booking Management System: Improper Restriction of Operations within the Bounds of a Memory Buffer

    CVE-2024-10559SourceCodester

    A vulnerability was found in SourceCodester Airport Booking Management System 1.0 and classified as critical. Affected by this issue is the function Details. The manipulation of the argument passport/name leads to buffer overflow. The attack needs to be approa

  • 7.8 High severity

    AutoCAD: Out-of-bounds Write

    CVE-2024-9997Autodesk

    A maliciously crafted DWG file when parsed in acdb25.dll through Autodesk AutoCAD can force a Memory Corruption vulnerability. A malicious actor can leverage this vulnerability to cause a crash, write sensitive data, or execute arbitrary code in the context of

  • 7.8 High severity

    AutoCAD: Out-of-bounds Write

    CVE-2024-8592Autodesk

    A maliciously crafted CATPART file when parsed in AcTranslators.exe through Autodesk AutoCAD can force a Memory Corruption vulnerability. A malicious actor can leverage this vulnerability to cause a crash, write sensitive data, or execute arbitrary code in the

  • 8.8 High severity

    Firefox: Out-of-bounds Write

    CVE-2024-10467Mozilla

    Memory safety bugs present in Firefox 131, Firefox ESR 128.3, and Thunderbird 128.3. 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 vulnerabilit

  • 7.8 High severity

    iOS and iPadOS: Out-of-bounds Write

    CVE-2024-44218Apple

    This issue was addressed with improved checks. This issue is fixed in iOS 17.7.1 and iPadOS 17.7.1, iOS 18.1 and iPadOS 18.1, macOS Sequoia 15.1, macOS Sonoma 14.7.1. Processing a maliciously crafted file may lead to heap corruption.

  • 9.8 Critical severity

    Payroll Management System: Buffer Copy without Checking Size of Input

    CVE-2024-10371SourceCodester

    A vulnerability classified as critical has been found in SourceCodester Payroll Management System 1.0. This affects the function login of the file main. The manipulation leads to buffer overflow. The exploit has been disclosed to the public and may be used.

  • 7.5 High severity

    gst-rtsp-server: Buffer Copy without Checking Size of Input

    CVE-2024-44331GStreamer project

    Incorrect Access Control in GStreamer RTSP server 1.25.0 in gst-rtsp-server/rtsp-media.c allows remote attackers to cause a denial of service via a series of specially crafted hexstream requests.

  • 9.8 Critical severity

    freecoap: Buffer Copy without Checking Size of Input

    CVE-2024-40494KeithcullenEPSS 1.17%

    Buffer Overflow in coap_msg.c in FreeCoAP allows remote attackers to execute arbitrary code or cause a denial of service (stack buffer overflow) via a crafted packet.

  • 9.6 Critical severity

    vilo_5_mesh_wifi_system_firmware: Buffer Copy without Checking Size of Input

    CVE-2024-40086Viloliving

    A Buffer Overflow vulnerability in the local_app_set_router_wifi_SSID_PWD function of Vilo 5 Mesh WiFi System <= 5.16.1.33 allows remote, unauthenticated attackers to execute arbitrary code via a password field larger than 64 bytes in length.

  • 9.6 Critical severity

    vilo_5_mesh_wifi_system_firmware: Buffer Copy without Checking Size of Input

    CVE-2024-40085Viloliving

    A Buffer Overflow vulnerability in the local_app_set_router_wan function of Vilo 5 Mesh WiFi System <= 5.16.1.33 allows remote, unauthenticated attackers to execute arbitrary code via pppoe_username and pppoe_password fields being larger than 128 bytes in leng

  • 9.6 Critical severity

    vilo_5_mesh_wifi_system_firmware: Buffer Copy without Checking Size of Input

    CVE-2024-40084Viloliving

    A Buffer Overflow in the Boa webserver of Vilo 5 Mesh WiFi System <= 5.16.1.33 allows remote, unauthenticated attackers to execute arbitrary code via exceptionally long HTTP methods or paths.

  • 9.6 Critical severity

    vilo_5_mesh_wifi_system_firmware: Buffer Copy without Checking Size of Input

    CVE-2024-40083Viloliving

    A Buffer Overflow vulnerabilty in the local_app_set_router_token function of Vilo 5 Mesh WiFi System <= 5.16.1.33 allows remote, unauthenticated attackers to execute arbitrary code via sscanf reading the token and timezone JSON fields into a fixed-length buffe

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2022-49023Linux

    In the Linux kernel, the following vulnerability has been resolved: wifi: cfg80211: fix buffer overflow in elem comparison For vendor elements, the code here assumes that 5 octets are present without checking. Since the element itself is already checked to fit

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2022-48948Linux

    In the Linux kernel, the following vulnerability has been resolved: usb: gadget: uvc: Prevent buffer overflow in setup handler Setup function uvc_function_setup permits control transfer requests with up to 64 bytes of payload (UVC_MAX_REQUEST_SIZE), data stage

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2024-49996Linux

    In the Linux kernel, the following vulnerability has been resolved: cifs: Fix buffer overflow when parsing NFS reparse points ReparseDataLength is sum of the InodeType size and DataBuffer size. So to get DataBuffer size it is needed to subtract InodeType's siz

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2024-49869Linux

    In the Linux kernel, the following vulnerability has been resolved: btrfs: send: fix buffer overflow detection when copying path to cache entry Starting with commit c0247d289e73 ("btrfs: send: annotate struct name_cache_entry with __counted_by()") we annotated

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2024-47751Linux

    In the Linux kernel, the following vulnerability has been resolved: PCI: kirin: Fix buffer overflow in kirin_pcie_parse_port() Within kirin_pcie_parse_port(), the pcie->num_slots is compared to pcie->gpio_id_reset size (MAX_PCI_SLOTS) which is correct and woul

  • 7.5 High severity

    Oracle WebLogic Server: Buffer Copy without Checking Size of Input

    CVE-2024-21274Oracle

    Vulnerability in the Oracle WebLogic Server product of Oracle Fusion Middleware (component: Console). Supported versions that are affected are 12.2.1.4.0 and 14.1.1.0.0. Easily exploitable vulnerability allows unauthenticated attacker with network access via H

  • 8.8 High severity

    DIR-619L B1: Buffer Copy without Checking Size of Input

    CVE-2024-9915D-LinkEPSS 1.81%

    A vulnerability classified as critical was found in D-Link DIR-619L B1 2.06. Affected by this vulnerability is the function formVirtualServ of the file /goform/formVirtualServ. The manipulation of the argument curTime leads to buffer overflow. The attack can b

  • 8.8 High severity

    DIR-619L B1: Buffer Copy without Checking Size of Input

    CVE-2024-9914D-LinkEPSS 1.66%

    A vulnerability classified as critical has been found in D-Link DIR-619L B1 2.06. Affected is the function formSetWizardSelectMode of the file /goform/formSetWizardSelectMode. The manipulation of the argument curTime leads to buffer overflow. It is possible to

  • 8.8 High severity

    DIR-619L B1: Buffer Copy without Checking Size of Input

    CVE-2024-9913D-LinkEPSS 1.66%

    A vulnerability was found in D-Link DIR-619L B1 2.06. It has been rated as critical. This issue affects the function formSetRoute of the file /goform/formSetRoute. The manipulation of the argument curTime leads to buffer overflow. The attack may be initiated r

  • 8.8 High severity

    DIR-619L B1: Buffer Copy without Checking Size of Input

    CVE-2024-9912D-LinkEPSS 1.57%

    A vulnerability was found in D-Link DIR-619L B1 2.06. It has been declared as critical. This vulnerability affects the function formSetQoS of the file /goform/formSetQoS. The manipulation of the argument curTime leads to buffer overflow. The attack can be init

  • 8.8 High severity

    DIR-619L B1: Buffer Copy without Checking Size of Input

    CVE-2024-9911D-LinkEPSS 1.57%

    A vulnerability was found in D-Link DIR-619L B1 2.06. It has been classified as critical. This affects the function formSetPortTr of the file /goform/formSetPortTr. The manipulation of the argument curTime leads to buffer overflow. It is possible to initiate t

  • 8.8 High severity

    DIR-619L B1: Buffer Copy without Checking Size of Input

    CVE-2024-9910D-LinkEPSS 1.57%

    A vulnerability was found in D-Link DIR-619L B1 2.06 and classified as critical. Affected by this issue is the function formSetPassword of the file /goform/formSetPassword. The manipulation of the argument curTime leads to buffer overflow. The attack may be la

  • 8.8 High severity

    DIR-619L B1: Buffer Copy without Checking Size of Input

    CVE-2024-9909D-LinkEPSS 2.19%

    A vulnerability has been found in D-Link DIR-619L B1 2.06 and classified as critical. Affected by this vulnerability is the function formSetMuti of the file /goform/formSetMuti. The manipulation of the argument curTime leads to buffer overflow. The attack can