Falhas do tipo CWE-121

3.821 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-2021-43301Stack overflow in PJSUA API when calling pjsua_playlist_create. An attacker-controlled 'file_names' argument may cause a buffer overflow sinEPSS 2.4%CVE-2025-65222MEDIUMTenda AC21 V16.03.08.16 is vulnerable to Buffer Overflow via the rebootTime parameter of /goform/SetSysAutoRebbotCfg.EPSS 2.4%CVE-2021-26729CRITICALspx_restservice Login_handler_func Command Injection and Multiple Stack-Based Buffer OverflowsEPSS 2.3%CVE-2021-26727CRITICALspx_restservice SubNet_handler_func Multiple Command Injections and Stack-Based Buffer OverflowsEPSS 2.3%CVE-2021-26728CRITICALspx_restservice KillDupUsr_func Command Injection and Stack-Based Buffer OverflowEPSS 2.3%CVE-2021-34830HIGHThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DAP-1330 1.13B01 BETA rouEPSS 2.3%CVE-2021-34827HIGHThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of D-Link DAP-1330 1.13B01 BETA rouEPSS 2.3%CVE-2021-0276CRITICALSteel-Belted Radius Carrier Edition: Remote code execution vulnerability when EAP Authentication is configured.EPSS 2.3%CVE-2025-60751HIGHGeographicLib 2.5 is vulnerable to Buffer Overflow in GeoConvert DMS::InternalDecode.EPSS 2.3%CVE-2021-27382A vulnerability has been identified in Solid Edge SE2020 (All versions < SE2020MP13), Solid Edge SE2020 (All versions < SE2020MP14), Solid EEPSS 2.3%CVE-2020-2042HIGHPAN-OS: Buffer overflow in the management web interfaceEPSS 2.3%CVE-2022-20704CRITICALCisco Small Business RV Series Routers VulnerabilitiesEPSS 2.3%CVE-2025-53521CRITICALBigIP APM VulnerabilityEPSS 2.3%KEVCVE-2017-16739An issue was discovered in WECON Technology LEVI Studio HMI Editor v1.8.29 and prior. Specially-crafted malicious files may be able to causeEPSS 2.3%CVE-2025-54916HIGHWindows NTFS Remote Code Execution VulnerabilityEPSS 2.3%CVE-2020-16221Delta Electronics TPEditor Versions 1.97 and prior. A stack-based buffer overflow may be exploited by processing a specially crafted projectEPSS 2.2%CVE-2018-6349When receiving calls using WhatsApp for Android, a missing size check when parsing a sender-provided packet allowed for a stack-based overflEPSS 2.2%CVE-2022-40151MEDIUMStack Buffer Overflow in xstreamEPSS 2.2%CVE-2026-30872CRITICALOpenWrt Project has a Stack-based Buffer Overflow vulnerability via IPv6 reverse DNS lookupEPSS 2.2%CVE-2022-20753MEDIUMCisco Small Business RV Series Routers Remote Code Execution VulnerabilityEPSS 2.2%