Weaknesses of type CWE-674

458 results

Recursão descontrolada

Ocorre quando uma função chama a si mesma (ou a outras funções em cadeia) sem limite adequado de profundidade, consumindo toda a pilha de execução até causar travamento ou crash. O risco é permitir que dados não validados ou entrada do usuário definam a profundidade da recursão, tornando fácil um ataque de negação de serviço.

Example

Um parser XML que processa elementos aninhados chamando recursivamente a si mesmo para cada nível, sem verificar a profundidade máxima. Um atacante envia um arquivo com milhares de tags aninhadas e a aplicação entra em stack overflow.

How to mitigate

Implemente um limite máximo de profundidade de recursão (contador ou limite de pilha) e lance exceção se ultrapassado. Prefira iteração com pilha explícita quando possível, ou valide e sanitize a entrada para garantir que a complexidade da estrutura de dados não ultrapasse limites razoáveis.

CVE-2026-39396LOWOpenBao has Decompression Bomb via Unbounded Copy in OCI Plugin Extraction (DoS)EPSS 0.2%CVE-2024-7866LOWStack overflow in Xpdf 4.05 due to object loop in PDF patternEPSS 0.2%CVE-2026-40989MEDIUMSelf Routing guard bypassed via function compositionEPSS 0.2%CVE-2026-30980MEDIUMiccDEV has a stack overflow in CIccBasicStructFactory::CreateStruct()EPSS 0.2%CVE-2026-2887MEDIUMaardappel lobster idents.h TypeName recursionEPSS 0.2%CVE-2026-38752LOWA stack overflow in the evaluate() function (editors/awk.c) of BusyBox commit 371fe9 allows attackers to cause a Denial of Service (DoS) viaEPSS 0.2%CVE-2026-38755LOWA heap overflow in the evalcommand() function (shell/ash.c) of Busybox v1.38.0 allows attackers to cause a Denial of Service (DoS) via supplEPSS 0.2%CVE-2021-29615LOWStack overflow in `ParseAttrValue` with nested tensorsEPSS 0.2%CVE-2024-54731MEDIUMcpdf through 2.8 allows stack consumption via a crafted PDF document.EPSS 0.2%CVE-2025-50537MEDIUMStack overflow vulnerability in eslint before 9.26.0 when serializing objects with circular references in eslint/lib/shared/serialization.jsEPSS 0.2%CVE-2026-119371MEDIUMSQLite before 3.54.0 Stack Exhaustion via CTE Chain in selectExpander()EPSS 0.2%CVE-2026-3388MEDIUMSquirrel sqcompiler.cpp UnaryOP recursionEPSS 0.2%CVE-2026-3385MEDIUMwren-lang wren wren_compiler.c resolveLocal recursionEPSS 0.2%CVE-2025-68950MEDIUMMagick's failure to limit MVG mutual references forming a loopEPSS 0.2%CVE-2026-3384MEDIUMChaiScript chaiscript_eval.hpp Function_Push_Pop recursionEPSS 0.2%CVE-2026-119376MEDIUMSQLite before 3.54.0 Stack Exhaustion via COLLATE Operator ChainEPSS 0.2%CVE-2026-27014MEDIUMNanZip has ROMFS Archive Infinite Loop / Stack OverflowEPSS 0.2%CVE-2026-44028HIGHAn issue was discovered in Nix before 2.34.7 and Lix before 2.95.2. Unbounded recursion in the NAR (Nix Archive) parser could lead to a stacEPSS 0.2%CVE-2026-78228MEDIUMUnbounded handle_error recursion enables denial of service in AshOban triggersEPSS 0.2%CVE-2026-75758MEDIUMUnbounded recursion between Inspect.List charlist rendering and List.to_string/1 error path in ElixirEPSS 0.2%