Fallos del tipo CWE-121

3823 resultados

Estouro de buffer na pilha

Ocorre quando código escreve dados além dos limites de um buffer alocado na pilha (stack), sobrescrevendo informações críticas como endereços de retorno ou variáveis locais. Um atacante pode explorar isso para executar código arbitrário ou causar crash da aplicação.

Ejemplo

Uma função copia uma string de entrada diretamente em um array de 64 bytes sem validar o tamanho: `char buffer[64]; strcpy(buffer, user_input);` Se o usuário enviar uma string com 200 bytes, ela sobrescreverá o endereço de retorno e pode redirecionar a execução para código malicioso.

Cómo mitigar

Use funções seguras com limite de tamanho (`strncpy`, `snprintf`), valide e sanitize entradas antes de copiar, implemente proteções em tempo de execução (stack canaries, ASLR, DEP) e considere usar linguagens com verificação de limites automática quando possível.

CVE-2021-43300—Stack overflow in PJSUA API when calling pjsua_recorder_create. An attacker-controlled 'filename' argument may cause a buffer overflow sinceEPSS 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-27382—A 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-16739—An 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-16221—Delta 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-6349—When 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%