Weaknesses of type CWE-120

3,164 results

Estouro de buffer clássico

A aplicação copia dados para um buffer sem validar o tamanho, permitindo que um atacante sobrescreva memória adjacente, incluindo endereços de retorno ou ponteiros de função. Isso resulta na execução de código arbitrário com os privilégios da aplicação.

Example

Um programa lê uma entrada do usuário com gets() ou strcpy() sem limitar quantos bytes podem ser copiados. Um atacante fornece uma entrada maior que o buffer, sobrescrevendo a pilha e injetando código malicioso que será executado quando a função retornar.

How to mitigate

Use funções seguras que validam limites (strncpy, snprintf, fgets) e compile com proteções de pilha ativadas (-fstack-protector-all no GCC). Além disso, implemente validação de entrada no tamanho esperado e considere linguagens com gerenciamento automático de memória para novos projetos.

CVE-2023-51771CRITICALIn MicroHttpServer (aka Micro HTTP Server) through a8ab029, _ParseHeader in lib/server.c allows a one-byte recv buffer overflow via a long UEPSS 0.7%CVE-2025-4236MEDIUMPCMan FTP Server MDIR Command buffer overflowEPSS 0.7%CVE-2025-5074MEDIUMFreeFloat FTP Server PROMPT Command buffer overflowEPSS 0.7%CVE-2025-5356MEDIUMFreeFloat FTP Server BYE Command buffer overflowEPSS 0.7%CVE-2025-5052MEDIUMFreeFloat FTP Server LS Command buffer overflowEPSS 0.7%CVE-2025-5053MEDIUMFreeFloat FTP Server MDIR Command buffer overflowEPSS 0.7%CVE-2026-22861HIGHiccDEV has a heap-buffer-overflow in SIccCalcOp::Describe() at IccProfLib/IccMpeCalc.cppEPSS 0.7%CVE-2025-5357MEDIUMFreeFloat FTP Server PWD Command buffer overflowEPSS 0.7%CVE-2025-4254MEDIUMPCMan FTP Server LIST Command buffer overflowEPSS 0.7%CVE-2025-5051MEDIUMFreeFloat FTP Server BINARY Command buffer overflowEPSS 0.7%CVE-2025-5218MEDIUMFreeFloat FTP Server LITERAL Command buffer overflowEPSS 0.7%CVE-2025-4238MEDIUMPCMan FTP Server MGET Command buffer overflowEPSS 0.7%CVE-2025-4845MEDIUMFreeFloat FTP Server TRACE Command buffer overflowEPSS 0.7%CVE-2025-5221MEDIUMFreeFloat FTP Server QUOTE Command buffer overflowEPSS 0.7%CVE-2025-4290MEDIUMPCMan FTP Server SMNT Command buffer overflowEPSS 0.7%CVE-2025-4251MEDIUMPCMan FTP Server RMDIR Command buffer overflowEPSS 0.7%CVE-2025-4253MEDIUMPCMan FTP Server HASH Command buffer overflowEPSS 0.7%CVE-2025-4872MEDIUMFreeFloat FTP Server CCC Command buffer overflowEPSS 0.7%CVE-2025-4239MEDIUMPCMan FTP Server TYPE Command buffer overflowEPSS 0.7%CVE-2025-4289MEDIUMPCMan FTP Server RNTO Command buffer overflowEPSS 0.7%