Falhas do tipo CWE-121

3.820 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-14816Advantech WebAccess 8.3.1 and earlier has several stack-based buffer overflow vulnerabilities that have been identified, which may allow an EPSS 4.1%CVE-2026-7851HIGHD-Link DI-8100 yyxz.asp sprintf stack-based overflowEPSS 4.1%CVE-2025-10773HIGHB-Link BL-AC2100 Web Management set_delshrpath_cfg delshrpath stack-based overflowEPSS 4.0%CVE-2020-8869HIGHThis vulnerability allows remote attackers to execute arbitrary code on affected installations of Foxit Studio Photo 3.6.6.916. User interacEPSS 4.0%CVE-2022-20749CRITICALCisco Small Business RV Series Routers VulnerabilitiesEPSS 4.0%CVE-2021-27137HIGHAn issue was discovered in router/upnp/src/ssdp.c in DD-WRT before 45724. An unsafe strcpy in the UPnP handling functionality allows an unauEPSS 4.0%KEVCVE-2020-14498CRITICALHMS Industrial Networks AB eCatcher Stack-based Buffer OverflowEPSS 4.0%CVE-2020-16215Advantech WebAccess HMI Designer, Versions 2.1.9.31 and prior. Processing specially crafted project files lacking proper validation of user EPSS 4.0%CVE-2021-42529HIGHXMP-Toolkit SDK Stack-based Buffer Overflow Could Lead To Arbitrary Code ExecutionEPSS 4.0%CVE-2021-42530HIGHXMP-Toolkit SDK Stack-based Buffer Overflow Could Lead To Arbitrary Code ExecutionEPSS 4.0%CVE-2021-42531HIGHXMP-Toolkit SDK Stack-based Buffer Overflow Could Lead To Arbitrary Code ExecutionEPSS 4.0%CVE-2021-42532HIGHXMP-Toolkit SDK Stack-based Buffer Overflow Could Lead To Arbitrary Code ExecutionEPSS 4.0%CVE-2018-14823Fuji Electric V-Server 4.0.3.0 and prior, A stack-based buffer overflow vulnerability has been identified, which may allow remote code execuEPSS 4.0%CVE-2022-24094HIGHAdobe After Effects Stack-based Buffer Overflow Arbitrary code executionEPSS 3.9%CVE-2022-24095HIGHAdobe After Effects Stack-based Buffer Overflow Arbitrary code executionEPSS 3.9%CVE-2024-20154HIGHIn Modem, there is a possible out of bounds write due to a missing bounds check. This could lead to remote code execution, if a UE has conneEPSS 3.9%CVE-2025-9363HIGHLinksys RE6250/RE6300/RE6350/RE6500/RE7000/RE9000 portTriggerManageRule stack-based overflowEPSS 3.9%CVE-2025-60690HIGHA stack-based buffer overflow exists in the get_merge_ipaddr function of the httpd binary on Linksys E1200 v2 routers (Firmware E1200_v2.0.1EPSS 3.9%CVE-2025-13445HIGHTenda AC21 SetIpMacBind stack-based overflowEPSS 3.9%CVE-2025-13446HIGHTenda AC21 SetSysTimeCfg stack-based overflowEPSS 3.9%