Weaknesses of type CWE-120

3,163 results

Estouro de buffer clássico

A aplicação copia dados para um buffer sem validar o tamanho, permitindo que um atacante sobrescreva memória adjacente, incluindo endereços de retorno ou ponteiros de função. Isso resulta na execução de código arbitrário com os privilégios da aplicação.

Example

Um programa lê uma entrada do usuário com gets() ou strcpy() sem limitar quantos bytes podem ser copiados. Um atacante fornece uma entrada maior que o buffer, sobrescrevendo a pilha e injetando código malicioso que será executado quando a função retornar.

How to mitigate

Use funções seguras que validam limites (strncpy, snprintf, fgets) e compile com proteções de pilha ativadas (-fstack-protector-all no GCC). Além disso, implemente validação de entrada no tamanho esperado e considere linguagens com gerenciamento automático de memória para novos projetos.

CVE-2019-5063HIGHAn exploitable heap buffer overflow vulnerability exists in the data structure persistence functionality of OpenCV 4.1.0. A specially crafteEPSS 21.1%CVE-2024-29671CRITICALBuffer Overflow vulnerability in NEXTU FLATA AX1500 Router v.1.0.2 allows a remote attacker to execute arbitrary code via the POST request hEPSS 20.9%CVE-2021-22802A CWE-120: Buffer Copy without Checking Size of Input vulnerability exists that could result in remote code execution due to missing length EPSS 20.2%CVE-2020-8597CRITICALeap.c in pppd in ppp 2.4.2 through 2.4.8 has an rhostname buffer overflow in the eap_request and eap_response functions.EPSS 19.9%CVE-2023-27853CRITICALNETGEAR Nighthawk WiFi6 Router prior to V1.0.10.94 contains a format string vulnerability in a SOAP service that could allow an attacker to EPSS 19.7%CVE-2019-8287TightVNC code version 1.3.10 contains global buffer overflow in HandleCoRREBBP macro function, which can potentially result code execution. EPSS 19.5%CVE-2022-43970HIGHBuffer overflow in Linksys WRT54GLEPSS 19.3%CVE-2022-37434CRITICALzlib through 1.2.12 has a heap-based buffer over-read or buffer overflow in inflate in inflate.c via a large gzip header extra field. NOTE: EPSS 17.9%CVE-2024-7828HIGHD-Link DNS-1550-04 photocenter_mgr.cgi cgi_set_cover buffer overflowEPSS 16.2%CVE-2024-42812CRITICALIn D-Link DIR-860L v2.03, there is a buffer overflow vulnerability due to the lack of length verification for the SID field in gena.cgi. AttEPSS 15.5%CVE-2025-5548MEDIUMFreeFloat FTP Server NOOP Command buffer overflowEPSS 15.0%CVE-2010-0820HIGHHeap-based buffer overflow in the Local Security Authority Subsystem Service (LSASS), as used in Active Directory in Microsoft Windows ServeEPSS 14.4%CVE-2021-22824A CWE-120: Buffer Copy without Checking Size of Input vulnerability exists that could result in denial of service, due to missing length cheEPSS 14.2%CVE-2023-34563CRITICALnetgear R6250 Firmware Version 1.0.4.48 is vulnerable to Buffer Overflow after authentication.EPSS 13.7%CVE-2023-31475CRITICALAn issue was discovered on GL.iNet devices before 3.216. The function guci2_get() found in libglutil.so has a buffer overflow when an item iEPSS 13.7%CVE-2023-7095CRITICALTotolink A7100RU HTTP POST Request main buffer overflowEPSS 13.7%CVE-2019-17147HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of TP-LINK TL-WR841N routers. Authentication EPSS 13.7%CVE-2024-39288CRITICALA buffer overflow vulnerability exists in the internet.cgi set_add_routing() functionality of Wavlink AC3000 M33A8.V5030.210505. A speciallyEPSS 13.5%CVE-2022-22805A CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability exists that could cause remote code executioEPSS 11.9%CVE-2025-5905HIGHTOTOLINK T10 POST Request cstecgi.cgi setWiFiRepeaterCfg buffer overflowEPSS 11.3%