Falhas do tipo CWE-121

3.833 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-2024-30589CRITICALTenda FH1202 v1.2.0.14(408) firmware has a stack overflow vulnerability in the entrys parameter of the fromAddressNat function.EPSS 0.7%CVE-2023-35748HIGHD-Link DAP-2622 DDP Firmware Upgrade Server IPv6 Address Stack-based Buffer Overflow Remote Code Execution VulnerabilityEPSS 0.7%CVE-2024-20307MEDIUMA vulnerability in the IKEv1 fragmentation code of Cisco IOS Software and Cisco IOS XE Software could allow an unauthenticated, remote attacEPSS 0.7%CVE-2026-24465CRITICALStack-based buffer overflow vulnerability exists in ELECOM wireless LAN access point devices. A crafted packet may lead to arbitrary code exEPSS 0.7%CVE-2023-5403HIGHServer hostname translation to IP address manipulation which could lead to an attacker performing remote code execution or causing a failureEPSS 0.7%CVE-2022-24973MEDIUMThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of TP-Link TL-WR940N 3.20.1 Build 2EPSS 0.7%CVE-2025-70247HIGHStack buffer overflow vulnerability in D-Link DIR-513 v1.10 via the curTime parameter to goform/formSetWizard1.EPSS 0.7%CVE-2025-70249HIGHStack buffer overflow vulnerability in D-Link DIR-513 v1.10 via the curTime parameter to goform/formSetWizard2.EPSS 0.7%CVE-2018-7527—A buffer overflow can be triggered in LeviStudio HMI Editor, Version 1.10 part of Wecon LeviStudioU 1.8.29, and PI Studio HMI Project PrograEPSS 0.7%CVE-2026-86509CRITICALD-Link DIR-895L udhcpcd serverpacket.c sendACK stack-based overflowEPSS 0.7%CVE-2026-43661HIGHA buffer overflow issue was addressed with improved memory handling. This issue is fixed in iOS 18.7.10 and iPadOS 18.7.10, iOS 26.5 and iPaEPSS 0.7%CVE-2024-52547HIGHLorex 2K Indoor Wi-Fi Security Camera - Stack buffer overflowEPSS 0.7%CVE-2022-0650MEDIUMThis vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of TP-Link TL-WR940N 3.20.1 Build 2EPSS 0.7%CVE-2023-27332HIGHTP-Link Archer AX21 tdpServer Logging Stack-based Buffer Overflow Remote Code Execution VulnerabilityEPSS 0.7%CVE-2024-27570HIGHLBT T300-T390 v2.2.1.8 were discovered to contain a stack overflow via the ApCliSsid parameter in the generate_conf_router function. This vuEPSS 0.7%CVE-2026-0792HIGHALGO 8180 IP Audio Alerter SIP INVITE Alert-Info Stack-based Buffer Overflow Remote Code Execution VulnerabilityEPSS 0.7%CVE-2024-27571HIGHLBT T300-T390 v2.2.1.8 were discovered to contain a stack overflow via the ApCliSsid parameter in the makeCurRemoteApList function. This vulEPSS 0.7%CVE-2025-70240HIGHStack buffer overflow vulnerability in D-Link DIR-513 v1.10 via the curTime parameter to goform/formSetWAN_Wizard51.EPSS 0.7%CVE-2026-2185HIGHTenda RX3 MAC Filtering Configuration Endpoint setBlackRule set_device_name stack-based overflowEPSS 0.7%CVE-2025-70237HIGHStack buffer overflow vulnerability in D-Link DIR-513 v1.10 via the curTime parameter to goform/formSetPortTr.EPSS 0.7%