Falhas do tipo CWE-121

3.825 resultados

Estouro de buffer na pilha

Ocorre quando código escreve mais dados em um buffer alocado na pilha do que sua capacidade permite, sobrescrevendo dados adjacentes (variáveis, endereços de retorno). Um atacante pode explorar isso para executar código arbitrário ou crashar a aplicação alterando o fluxo de execução.

Exemplo

Uma função C que copia uma string do usuário diretamente em um array local sem validar tamanho: `char buffer[10]; strcpy(buffer, user_input);`. Se user_input tiver 50 caracteres, os 40 extras sobrescrevem a pilha, incluindo potencialmente o endereço de retorno da função.

Como mitigar

Use funções seguras que limitam escrita (strncpy, snprintf em vez de strcpy/sprintf), valide tamanho de entrada antes de copiar, ative proteções do compilador (stack canaries, ASLR) e use ferramentas de análise estática para detectar cópias sem limite.

CVE-2025-9252HIGHLinksys RE6250/RE6300/RE6350/RE6500/RE7000/RE9000 DisablePasswordAlertRedirect stack-based overflowEPSS 1.0%CVE-2024-21053MEDIUMVulnerability in the MySQL Server product of Oracle MySQL (component: Server: DML). Supported versions that are affected are 8.0.34 and priEPSS 1.0%CVE-2026-2876HIGHTenda A18 setBlackRule parse_macfilter_rule stack-based overflowEPSS 1.0%CVE-2025-9251HIGHLinksys RE6250/RE6300/RE6350/RE6500/RE7000/RE9000 sta_wps_pin stack-based overflowEPSS 1.0%CVE-2025-9253HIGHLinksys RE6250/RE6300/RE6350/RE6500/RE7000/RE9000 RP_doSpecifySiteSurvey stack-based overflowEPSS 1.0%CVE-2025-9246HIGHLinksys RE6250/RE6300/RE6350/RE6500/RE7000/RE9000 check_port_conflict stack-based overflowEPSS 1.0%CVE-2025-9247HIGHLinksys RE6250/RE6300/RE6350/RE6500/RE7000/RE9000 setVlan stack-based overflowEPSS 1.0%CVE-2025-9248HIGHLinksys RE6250/RE6300/RE6350/RE6500/RE7000/RE9000 RP_pingGatewayByBBS stack-based overflowEPSS 1.0%CVE-2025-6510HIGHNetgear EX6100 sub_415EF8 stack-based overflowEPSS 1.0%CVE-2024-41630HIGHStack-based buffer overflow vulnerability in Tenda AC18 V15.03.3.10_EN allows a remote attacker to execute arbitrary code via the ssid paramEPSS 1.0%CVE-2023-6888MEDIUMPHZ76 RtspServer RtspMesaage.cpp ParseRequestLine stack-based overflowEPSS 1.0%CVE-2023-41230HIGHD-Link DIR-3040 HTTP Request Processing Referer Stack-Based Buffer Overflow Remote Code Execution VulnerabilityEPSS 1.0%CVE-2026-6123HIGHTenda F451 httpd addressNat fromAddressNat stack-based overflowEPSS 1.0%CVE-2025-6111HIGHTenda FH1205 VirtualSer fromVirtualSer stack-based overflowEPSS 1.0%CVE-2025-5849HIGHTenda AC15 HTTP POST Request SetRemoteWebCfg formSetSafeWanWebMan stack-based overflowEPSS 1.0%CVE-2025-5847HIGHTenda AC9 HTTP POST Request SetRemoteWebCfg formSetSafeWanWebMan stack-based overflowEPSS 1.0%CVE-2026-40170HIGHngtcp2 has a qlog transport parameter serialization stack buffer overflowEPSS 1.0%CVE-2026-7470HIGHTenda 4G300 SafeMacFilter sub_427C3C stack-based overflowEPSS 1.0%CVE-2026-5550HIGHTenda AC10 httpd fromSysToolChangePwd stack-based overflowEPSS 1.0%CVE-2023-35634HIGHWindows Bluetooth Driver Remote Code Execution VulnerabilityEPSS 1.0%