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

    CP450: Buffer Copy without Checking Size of Input

    CVE-2024-7465TOTOLINKEPSS 1.35%

    A vulnerability, which was classified as critical, was found in TOTOLINK CP450 4.1.0cu.747_B20191224. Affected is the function loginauth of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument http_host leads to buffer overflow. It is possible to la

  • 9.8 Critical severity

    CP900: Buffer Copy without Checking Size of Input

    CVE-2024-7463TOTOLINKEPSS 11%

    A vulnerability classified as critical was found in TOTOLINK CP900 6.3c.566. This vulnerability affects the function UploadCustomModule of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument File leads to buffer overflow. The attack can be initiate

  • 9.8 Critical severity

    N350RT: Buffer Copy without Checking Size of Input

    CVE-2024-7462TOTOLINKEPSS 1.35%

    A vulnerability classified as critical has been found in TOTOLINK N350RT 9.3.5u.6139_B20201216. This affects the function setWizardCfg of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument ssid leads to buffer overflow. It is possible to initiate

  • 8.8 High severity

    EX1200L: Buffer Copy without Checking Size of Input

    CVE-2024-7338TOTOLINKEPSS 1.2%

    A vulnerability, which was classified as critical, was found in TOTOLINK EX1200L 9.3.5u.6146_B20201023. This affects the function setParentalRules of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument week/sTime/eTime leads to buffer overflow. It

  • 8.8 High severity

    EX1200L: Buffer Copy without Checking Size of Input

    CVE-2024-7337TOTOLINKEPSS 1.2%

    A vulnerability, which was classified as critical, has been found in TOTOLINK EX1200L 9.3.5u.6146_B20201023. Affected by this issue is the function loginauth of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument http_host leads to buffer overflow.

  • 8.8 High severity

    EX200: Buffer Copy without Checking Size of Input

    CVE-2024-7336TOTOLINKEPSS 1.27%

    A vulnerability classified as critical was found in TOTOLINK EX200 4.0.3c.7646_B20201211. Affected by this vulnerability is the function loginauth of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument http_host leads to buffer overflow. The attack

  • 8.8 High severity

    EX200: Buffer Copy without Checking Size of Input

    CVE-2024-7335TOTOLINKEPSS 1.16%

    A vulnerability classified as critical has been found in TOTOLINK EX200 4.0.3c.7646_B20201211. Affected is the function getSaveConfig of the file /cgi-bin/cstecgi.cgi?action=save&setting. The manipulation of the argument http_host leads to buffer overflow. It

  • 8.8 High severity

    EX1200L: Buffer Copy without Checking Size of Input

    CVE-2024-7334TOTOLINKEPSS 1.19%

    A vulnerability was found in TOTOLINK EX1200L 9.3.5u.6146_B20201023. It has been rated as critical. This issue affects the function UploadCustomModule of the file /cgi-bin/cstecgi.cgi. The manipulation leads to buffer overflow. The attack may be initiated remo

  • 8.8 High severity

    N350RT: Buffer Copy without Checking Size of Input

    CVE-2024-7333TOTOLINKEPSS 1.24%

    A vulnerability was found in TOTOLINK N350RT 9.3.5u.6139_B20201216. It has been declared as critical. This vulnerability affects the function setParentalRules of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument week/sTime/eTime leads to buffer o

  • 8.8 High severity

    A3300R: Buffer Copy without Checking Size of Input

    CVE-2024-7331TOTOLINKEPSS 1.2%

    A vulnerability was found in TOTOLINK A3300R 17.0.0cu.557_B20221024 and classified as critical. Affected by this issue is the function UploadCustomModule of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument File leads to buffer overflow. The atta

  • 9.8 Critical severity

    slpd-lite: Buffer Copy without Checking Size of Input

    CVE-2024-41660OpenBMC

    slpd-lite is a unicast SLP UDP server. Any OpenBMC system that includes the slpd-lite package is impacted. Installing this package is the default when building OpenBMC. Nefarious users can send slp packets to the BMC using UDP port 427 to cause memory overflow

  • 8.8 High severity

    CA300-PoE: Buffer Copy without Checking Size of Input

    CVE-2024-7217TOTOLINKEPSS 7.07%

    A vulnerability was found in TOTOLINK CA300-PoE 6.2c.884. It has been declared 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 attack can b

  • 8.8 High severity

    A7000R: Buffer Copy without Checking Size of Input

    CVE-2024-7213TOTOLINKEPSS 1.09%

    A vulnerability, which was classified as critical, was found in TOTOLINK A7000R 9.1.0u.6268_B20220504. Affected is the function setWizardCfg of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument ssid leads to buffer overflow. It is possible to lau

  • 8.8 High severity

    A7000R: Buffer Copy without Checking Size of Input

    CVE-2024-7212TOTOLINKEPSS 1.02%

    A vulnerability, which was classified as critical, has been found in TOTOLINK A7000R 9.1.0u.6268_B20220504. This issue affects the function loginauth of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument password leads to buffer overflow. The atta

  • 7.5 High severity

    ac10_firmware: Buffer Copy without Checking Size of Input

    CVE-2024-33365TendacnEPSS 1.05%

    Buffer Overflow vulnerability in Tenda AC10 v4 US_AC10V4.0si_V16.03.10.20_cn allows a remote attacker to execute arbitrary code via the Virtual_Data_Check function in the bin/httpd component.

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2024-41039Linux

    In the Linux kernel, the following vulnerability has been resolved: firmware: cs_dsp: Fix overflow checking of wmfw header Fix the checking that firmware file buffer is large enough for the wmfw header, to prevent overrunning the buffer. The original code test

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7187TOTOLINKEPSS 1.15%

    A vulnerability was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. It has been declared as critical. This vulnerability affects the function UploadCustomModule of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument File leads to buffer overflow.

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7186TOTOLINKEPSS 1.09%

    A vulnerability was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. It has been classified as critical. This affects the function setWiFiAclAddConfig of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument comment leads to buffer overflow. It is po

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7185TOTOLINKEPSS 1.09%

    A vulnerability was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102 and classified as critical. Affected by this issue is the function setWebWlanIdx of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument webWlanIdx leads to buffer overflow. The att

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7184TOTOLINKEPSS 1.09%

    A vulnerability has been found in TOTOLINK A3600R 4.1.2cu.5182_B20201102 and classified as critical. Affected by this vulnerability is the function setUrlFilterRules of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument url leads to buffer overflo

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7183TOTOLINKEPSS 1.09%

    A vulnerability, which was classified as critical, was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. Affected is the function setUploadSetting of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument FileName leads to buffer overflow. It is possib

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7182TOTOLINKEPSS 1.09%

    A vulnerability, which was classified as critical, has been found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. This issue affects the function setUpgradeFW of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument FileName leads to buffer overflow. The

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7180TOTOLINKEPSS 1.09%

    A vulnerability classified as critical has been found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. This affects the function setPortForwardRules of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument comment leads to buffer overflow. It is possible t

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7179TOTOLINKEPSS 1.09%

    A vulnerability was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. It has been rated as critical. Affected by this issue is the function setParentalRules of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument startTime/endTime leads to buffer ove

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7178TOTOLINKEPSS 1.09%

    A vulnerability was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. It has been declared as critical. Affected by this vulnerability is the function setMacQos of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument priority/macAddress leads to buff

  • 8.8 High severity

    A3600R: Improper Neutralization of Special Elements used in a Command

    CVE-2024-7177TOTOLINKEPSS 1.18%

    A vulnerability was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. It has been classified as critical. Affected is the function setLanguageCfg of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument langType leads to buffer overflow. It is possibl

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7176TOTOLINKEPSS 1.09%

    A vulnerability was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102 and classified as critical. This issue affects the function setIpQosRules of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument comment leads to buffer overflow. The attack may be

  • 8.8 High severity

    A3600R: Improper Neutralization of Special Elements used in a Command

    CVE-2024-7174TOTOLINKEPSS 1.18%

    A vulnerability, which was classified as critical, was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. This affects the function setdeviceName of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument deviceMac/deviceName leads to buffer overflow. It

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7173TOTOLINKEPSS 1.09%

    A vulnerability, which was classified as critical, has been found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. Affected by this issue is the function loginauth of the file /cgi-bin/cstecgi.cgi. The manipulation of the argument password/http_host leads to buffer

  • 8.8 High severity

    A3600R: Buffer Copy without Checking Size of Input

    CVE-2024-7172TOTOLINKEPSS 1.09%

    A vulnerability classified as critical was found in TOTOLINK A3600R 4.1.2cu.5182_B20201102. Affected by this vulnerability is the function getSaveConfig of the file /cgi-bin/cstecgi.cgi?action=save&setting. The manipulation of the argument http_host leads to b

  • 8.8 High severity

    A3100R: Buffer Copy without Checking Size of Input

    CVE-2024-7157TOTOLINKEPSS 7.37%

    A vulnerability was found in TOTOLINK A3100R 4.1.2cu.5050_B20200504. It has been classified as critical. This affects the function getSaveConfig of the file /cgi-bin/cstecgi.cgi?action=save&setting. The manipulation of the argument http_host leads to buffer ov

  • 7.8 High severity

    Assimp: Out-of-bounds Write

    CVE-2024-40724Open Asset Import Library

    Heap-based buffer overflow vulnerability in Assimp versions prior to 5.4.2 allows a local attacker to execute arbitrary code by inputting a specially crafted file into the product.

  • 9.8 Critical severity

    ac18: Out-of-bounds Write

    CVE-2024-33180Tenda

    Tenda AC18 V15.03.3.10_EN was discovered to contain a stack-based buffer overflow vulnerability via the deviceId parameter at ip/goform/saveParentControlInfo.

  • 9.8 Critical severity

    Certain HP PC Products: Buffer Copy without Checking Size of Input

    CVE-2024-4143HP

    A potential security vulnerability has been identified in certain HP PC products using AMI BIOS, which might allow arbitrary code execution. AMI has released firmware updates to mitigate this vulnerability.

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2024-40902Linux

    In the Linux kernel, the following vulnerability has been resolved: jfs: xattr: fix buffer overflow for invalid xattr When an xattr size is not what is expected, it is printed out to the kernel log in hex format as a form of debugging. But when that xattr size

  • 7.5 High severity

    Firefox: Buffer Copy without Checking Size of Input

    CVE-2024-6604Mozilla

    Memory safety bugs present in Firefox 127, Firefox ESR 115.12, and Thunderbird 115.12. 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 vulnerabil

  • 7.2 High severity

    Fireware OS: Buffer Copy without Checking Size of Input

    CVE-2024-5974WatchGuardEPSS 1.05%

    A buffer overflow in WatchGuard Fireware OS could may allow an authenticated remote attacker with privileged management access to execute arbitrary code with system privileges on the firewall. This issue affects Fireware OS: from 11.9.6 through 12.10.3.

  • 7.5 High severity

    freemodbus: Buffer Copy without Checking Size of Input

    CVE-2024-31504Sila Embedded Solutions

    Buffer Overflow vulnerability in SILA Embedded Solutions GmbH freemodbus v.2018-09-12 allows a remtoe attacker to cause a denial of service via the LINUXTCP server component.

  • 7.8 High severity

    Linux: Buffer Copy without Checking Size of Input

    CVE-2024-39480Linux

    In the Linux kernel, the following vulnerability has been resolved: kdb: Fix buffer overflow during tab-complete Currently, when the user attempts symbol completion with the Tab key, kdb will use strncpy() to insert the completed symbol into the command buffer

  • 7.8 High severity

    Ffmpeg: Buffer Copy without Checking Size of Input

    CVE-2024-32230FFmpeg

    FFmpeg 7.0 is vulnerable to Buffer Overflow. There is a negative-size-param bug at libavcodec/mpegvideo_enc.c:1216:21 in load_input_picture in FFmpeg7.0