Falhas do tipo CWE-121

3.804 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-2023-25086HIGHMultiple buffer overflow vulnerabilities exist in the vtysh_ubus binary of Milesight UR32L v32.3.0.5 due to the use of an unsafe sprintf patEPSS 1.5%CVE-2023-25108HIGHMultiple buffer overflow vulnerabilities exist in the vtysh_ubus binary of Milesight UR32L v32.3.0.5 due to the use of an unsafe sprintf patEPSS 1.5%CVE-2023-25093HIGHMultiple buffer overflow vulnerabilities exist in the vtysh_ubus binary of Milesight UR32L v32.3.0.5 due to the use of an unsafe sprintf patEPSS 1.5%CVE-2023-25101HIGHMultiple buffer overflow vulnerabilities exist in the vtysh_ubus binary of Milesight UR32L v32.3.0.5 due to the use of an unsafe sprintf patEPSS 1.5%CVE-2023-25084HIGHMultiple buffer overflow vulnerabilities exist in the vtysh_ubus binary of Milesight UR32L v32.3.0.5 due to the use of an unsafe sprintf patEPSS 1.5%CVE-2024-4164HIGHTenda G3 ModifyPppAuthWhiteMac formModifyPppAuthWhiteMac stack-based overflowEPSS 1.5%CVE-2024-3881HIGHTenda W30E frmL7ProtForm frmL7PlotForm stack-based overflowEPSS 1.5%CVE-2024-4165HIGHTenda G3 modifyDhcpRule stack-based overflowEPSS 1.5%CVE-2025-35003CRITICALApache NuttX RTOS: NuttX Bluetooth Stack HCI and UART DoS/RCE Vulnerabilities.EPSS 1.5%CVE-2021-46699—A vulnerability has been identified in Simcenter Femap (All versions < V2022.1.1). Affected application contains a stack based buffer overflEPSS 1.5%CVE-2024-4252HIGHTenda i22 formSetUrlFilterRule stack-based overflowEPSS 1.5%CVE-2024-4496HIGHTenda i21 formWifiMacFilterSet stack-based overflowEPSS 1.5%CVE-2024-4113HIGHTenda TX9 SetSysTimeCfg sub_42D4DC stack-based overflowEPSS 1.5%CVE-2024-4247HIGHTenda i21 formQosManage_auto stack-based overflowEPSS 1.5%CVE-2024-4291HIGHTenda A301 setBlackRule formAddMacfilterRule stack-based overflowEPSS 1.5%CVE-2024-4111HIGHTenda TX9 SetLEDCfg sub_42BD7C stack-based overflowEPSS 1.5%CVE-2024-4494HIGHTenda i21 setUplinkInfo formSetUplinkInfo stack-based overflowEPSS 1.5%CVE-2024-4492HIGHTenda i21 setStaOffline formOfflineSet stack-based overflowEPSS 1.5%CVE-2024-4495HIGHTenda i21 formWifiMacFilterGet stack-based overflowEPSS 1.5%CVE-2024-4497HIGHTenda i21 formexeCommand stack-based overflowEPSS 1.5%