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

    Ac15 Firmware: Buffer Copy without Checking Size of Input

    CVE-2022-38325TendacnEPSS 1.15%

    Tenda AC15 WiFi Router V15.03.05.19_multi and AC18 WiFi Router V15.03.05.19_multi were discovered to contain a buffer overflow via the filePath parameter at /goform/expandDlnaFile.

  • 7.5 High severity

    Dir-1960 Firmware: Buffer Copy without Checking Size of Input

    CVE-2022-31414D-LinkEPSS 2.18%

    D-Link DIR-1960 firmware DIR-1960_A1_1.11 was discovered to contain a buffer overflow via srtcat in prog.cgi. This vulnerability allowed attackers to cause a Denial of Service (DoS) via a crafted HTTP request.

  • 9.8 Critical severity

    Snapdragon Auto, Snapdragon Compute…: Buffer Copy without Checking Size of Input

    CVE-2022-25659Qualcomm

    Memory corruption due to buffer overflow while parsing MKV clips with invalid bitmap size in Snapdragon Auto, Snapdragon Compute, Snapdragon Connectivity, Snapdragon Consumer IOT, Snapdragon Industrial IOT, Snapdragon Mobile, Snapdragon Voice & Music, Snapdrag

  • 9.8 Critical severity

    Snapdragon Auto, Snapdragon Compute…: Buffer Copy without Checking Size of Input

    CVE-2022-25657Qualcomm

    Memory corruption due to buffer overflow occurs while processing invalid MKV clip which has invalid seek header in Snapdragon Auto, Snapdragon Compute, Snapdragon Connectivity, Snapdragon Industrial IOT, Snapdragon Mobile, Snapdragon Wearables

  • 9.8 Critical severity

    Vigor3910 Firmware: Buffer Copy without Checking Size of Input

    CVE-2022-32548DrayTekEPSS 34%

    An issue was discovered on certain DrayTek Vigor routers before July 2022 such as the Vigor3910 before 4.3.1.1. /cgi-bin/wlogin.cgi has a buffer overflow via the username or password to the aa or ab field.

  • 9.8 Critical severity

    D-Link Routers Buffer Overflow Exploited

    CVE-2022-37055D-LinkEPSS 57.4%

    D-Link Go-RT-AC750 GORTAC750_revA_v101b03 and GO-RT-AC750_revB_FWv200b02 are vulnerable to Buffer Overflow via cgibin, hnap_main,

  • 7.5 High severity

    Dsl-3782 Firmware: Buffer Copy without Checking Size of Input

    CVE-2022-35192D-LinkEPSS 1.05%

    D-Link Wireless AC1200 Dual Band VDSL ADSL Modem Router DSL-3782 Firmware v1.01 allows unauthenticated attackers to cause a Denial of Service (DoS) via the User parameter or Pwd parameter to Login.asp.

  • 7.8 High severity

    Cdm: Buffer Copy without Checking Size of Input

    CVE-2022-30984Rubrik

    A buffer overflow vulnerability in the Rubrik Backup Service (RBS) Agent for Linux or Unix-based systems in Rubrik CDM 7.0.1, 7.0.1-p1, 7.0.1-p2 or 7.0.1-p3 before CDM 7.0.2-p2 could allow a local attacker to obtain root privileges by sending a crafted message

  • 7.5 High severity

    libapreq2: Buffer Copy without Checking Size of Input

    CVE-2022-22728ApacheEPSS 6.26%

    A flaw in Apache libapreq2 versions 2.16 and earlier could cause a buffer overflow while processing multipart form uploads. A remote attacker could send a request causing a process crash which could lead to a denial of service attack.

  • 9.8 Critical severity

    Sony Xperia: Buffer Copy without Checking Size of Input

    CVE-2022-23747Sony XperiaEPSS 10.5%

    In Sony Xperia series 1, 5, and Pro, an out of bound memory access can occur due to lack of validation of the number of frames being passed during music playback.

  • 7.2 High severity

    Nintendo Wi-Fi Network Adaptor WAP-001: Buffer Copy without Checking Size of Input

    CVE-2022-36293NintendoEPSS 1.25%

    Buffer overflow vulnerability in Nintendo Wi-Fi Network Adaptor WAP-001 All versions allows an attacker with an administrative privilege to execute arbitrary code via unspecified vectors.

  • 7.5 High severity

    Eternal Terminal: Buffer Copy without Checking Size of Input

    CVE-2022-24949Jason GauciEPSS 1.08%

    A privilege escalation to root exists in Eternal Terminal prior to version 6.2.0. This is due to the combination of a race condition, buffer overflow, and logic bug all in PipeSocketHandler::listen().

  • 9.8 Critical severity

    The Isle Evrima: Buffer Copy without Checking Size of Input

    CVE-2022-38221The Isle Evrima ProjectEPSS 1.92%

    A buffer overflow in the FTcpListener thread in The Isle Evrima (the dedicated server on Windows and Linux) 0.9.88.07 before 2022-08-12 allows a remote attacker to crash any server with an accessible RCON port, or possibly execute arbitrary code.

  • 9.8 Critical severity

    Multiple vulnerabilities in Cisco Small Business RV160, RV260, RV340, and RV345 Series Routers…

    CVE-2022-20842CiscoEPSS 1.91%

    Multiple vulnerabilities in Cisco Small Business RV160, RV260, RV340, and RV345 Series Routers could allow an unauthenticated, remote attacker to execute arbitrary code or cause a denial of service (DoS) condition on an affected device. For more information ab

  • 10.0 Critical severity

    Cisco Small Business RV Series Router Firmware: Improper Neutralization of Special Elements used in an OS Command

    CVE-2022-20827CiscoEPSS 1.98%

    Multiple vulnerabilities in Cisco Small Business RV160, RV260, RV340, and RV345 Series Routers could allow an unauthenticated, remote attacker to execute arbitrary code or cause a denial of service (DoS) condition on an affected device. For more information ab

  • 9.0 Critical severity

    Multiple vulnerabilities in Cisco Small Business RV160, RV260, RV340, and RV345 Series Routers…

    CVE-2022-20841CiscoEPSS 3.43%

    Multiple vulnerabilities in Cisco Small Business RV160, RV260, RV340, and RV345 Series Routers could allow an unauthenticated, remote attacker to execute arbitrary code or cause a denial of service (DoS) condition on an affected device. For more information ab

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-26342TclEPSS 1.27%

    A buffer overflow vulnerability exists in the confsrv ucloud_set_node_location functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted network packet can lead to a buffer overflow. An attacker can send a malicious packet to trigger this v

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24029TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24028TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24027TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24026TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24025TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24024TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 8.8 High severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24023Tcl

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24022TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24021TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24020TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24019TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24018TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24017TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24016TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24015TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24014TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24013TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24012TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24011TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24010TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24009TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24008TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T

  • 9.8 Critical severity

    LinkHub Mesh Wifi: Buffer Copy without Checking Size of Input

    CVE-2022-24007TclEPSS 1.31%

    A buffer overflow vulnerability exists in the GetValue functionality of TCL LinkHub Mesh Wi-Fi MS1G_00_01.00_14. A specially-crafted configuration value can lead to a buffer overflow. An attacker can modify a configuration value to trigger this vulnerability.T