Falhas do tipo CWE-121

3.847 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-2018-7513—In Omron CX-Supervisor Versions 3.30 and prior, parsing malformed project files may cause a stack-based buffer overflow.EPSS 0.4%CVE-2026-95104HIGHStack-based buffer overflow vulnerability exists in BUFFALO Wi-Fi products. A non-authenticated crafted HTTP request may cause a denial-of-sEPSS 0.4%CVE-2026-4444HIGHStack buffer overflow in WebRTC in Google Chrome prior to 146.0.7680.153 allowed a remote attacker to potentially exploit stack corruption vEPSS 0.4%CVE-2024-28582HIGHBuffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary code via the rgbe_RGBETEPSS 0.4%CVE-2024-28566HIGHBuffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary code via the AssignPixeEPSS 0.4%CVE-2024-28581HIGHBuffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary code via the _assignPixEPSS 0.4%CVE-2024-28580HIGHBuffer Overflow vulnerability in open source FreeImage v.3.19.0 [r1909] allows a local attacker to execute arbitrary code via the ReadData()EPSS 0.4%CVE-2011-10024HIGHMJM Core Player 2011 .s3m File Stack-Based Buffer OverflowEPSS 0.4%CVE-2025-22911MEDIUMRE11S v1.11 was discovered to contain a stack overflow via the rootAPmac parameter in the formiNICbasicREP function.EPSS 0.4%CVE-2024-45062MEDIUMA stack based buffer overflow vulnerability is present in OpenPrinting ippusbxd 1.34. A specially configured printer that supports IPP-over-EPSS 0.4%CVE-2025-64344HIGHSuricata is vulnerable to a stack overflow from unbounded stack allocation in LuaPushStringBufferEPSS 0.4%CVE-2026-11024HIGHStack buffer overflow in Skia in Google Chrome prior to 149.0.7827.53 allowed a remote attacker to potentially exploit stack corruption via EPSS 0.4%CVE-2025-1547HIGHWatchGuard Firebox Authenticated Stack Overflow in Certificate Request CommandEPSS 0.4%CVE-2024-9261HIGHIrfanView SID File Parsing Stack-based Buffer Overflow Remote Code Execution VulnerabilityEPSS 0.4%CVE-2024-37600MEDIUMAn issue was discovered in Mercedes Benz NTG (New Telematics Generation) 6 through 2021. A possible stack buffer overflow in the Service BroEPSS 0.4%CVE-2024-11510HIGHIrfanView WBZ plugin WB1 File Parsing Stack-based Buffer Overflow Remote Code Execution VulnerabilityEPSS 0.4%CVE-2025-14932HIGHNSF Unidata NetCDF-C Time Unit Stack-based Buffer Overflow Remote Code Execution VulnerabilityEPSS 0.4%CVE-2025-14936HIGHNSF Unidata NetCDF-C Attribute Name Stack-based Buffer Overflow Remote Code Execution VulnerabilityEPSS 0.4%CVE-2025-14934HIGHNSF Unidata NetCDF-C Variable Name Stack-based Buffer Overflow Remote Code Execution VulnerabilityEPSS 0.4%CVE-2025-4892MEDIUMcode-projects Police Station Management System Delete Record source.cpp remove stack-based overflowEPSS 0.4%