Falhas do tipo CWE-120

3.163 resultados

Estouro de buffer clássico

A aplicação copia dados em um buffer sem validar o tamanho, permitindo que um atacante sobrescreva memória adjacente. Isso pode corromper variáveis, desviar o fluxo de execução ou injetar código malicioso que será executado com os mesmos privilégios da aplicação.

Exemplo

Um formulário web aceita um nome de usuário e o copia direto em um array de 32 bytes sem checar comprimento. Um atacante envia 200 bytes; o excesso sobrescreve o endereço de retorno da função, desviando a execução para código dele. Comum em CGI antigos, serviços network e binários C/C++ mal escritos.

Como mitigar

Use funções seguras (strncpy, strlcpy em vez de strcpy; snprintf em vez de sprintf) que respeitam limites. Sempre valide e sanitize entrada externa antes de copiar. Em C moderno, considere AddressSanitizer ou ferramentas estáticas para detectar cópias inseguras em tempo de compilação.

CVE-2021-28548HIGHAdobe Photoshop parsing JS buffer overflow vulnerability could lead to arbitrary code executionEPSS 6.4%CVE-2025-5739HIGHTOTOLINK X15 HTTP POST Request formSaveConfig buffer overflowEPSS 6.3%CVE-2025-5850HIGHTenda AC15 HTTP POST Request SetLEDCf formsetschedled buffer overflowEPSS 6.2%CVE-2025-5907HIGHTOTOLINK EX1200T HTTP POST Request formFilter buffer overflowEPSS 6.2%CVE-2025-5901HIGHTOTOLINK T10 POST Request cstecgi.cgi UploadCustomModule buffer overflowEPSS 6.2%CVE-2025-4897HIGHTenda A15 HTTP POST Request multimodalAdd buffer overflowEPSS 6.1%CVE-2025-5785HIGHTOTOLINK X15 HTTP POST Request formWirelessTbl buffer overflowEPSS 6.0%CVE-2025-5788HIGHTOTOLINK X15 HTTP POST Request formReflashClientTbl buffer overflowEPSS 6.0%CVE-2025-5786HIGHTOTOLINK X15 HTTP POST Request formDMZ buffer overflowEPSS 6.0%CVE-2025-5787HIGHTOTOLINK X15 HTTP POST Request formWsc buffer overflowEPSS 6.0%CVE-2025-5790HIGHTOTOLINK X15 HTTP POST Request formIpQoS buffer overflowEPSS 6.0%CVE-2025-5902HIGHTOTOLINK T10 POST Request cstecgi.cgi setUpgradeFW buffer overflowEPSS 5.9%CVE-2026-7854CRITICALD-Link DI-8100 POST Parameter url_rule.asp url_rule_asp buffer overflowEPSS 5.9%CVE-2025-14709CRITICALShiguangwu sgwbox N3 WIRELESSCFGGET http_eshell_server buffer overflowEPSS 5.9%CVE-2024-52759LOWD-LINK DI-8003 v16.07.26A1 was discovered to contain a buffer overflow via the ip parameter in the ip_position_asp function.EPSS 5.8%CVE-2022-22728libapreq2 multipart form parse memory corruptionEPSS 5.8%CVE-2025-5792HIGHTOTOLINK EX1200T HTTP POST Request formWlanRedirect buffer overflowEPSS 5.8%CVE-2025-7945HIGHD-Link DIR-513 formSetWanDhcpplus buffer overflowEPSS 5.7%CVE-2025-14534CRITICALUTT 进取 512W Endpoint formNatStaticMap strcpy buffer overflowEPSS 5.7%CVE-2025-14535CRITICALUTT 进取 512W formConfigFastDirectionW strcpy buffer overflowEPSS 5.6%