Weaknesses of type CWE-674

347 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-40612MEDIUMjq: Stack overflow via unbounded recursion in jv_containsEPSS 0.2%CVE-2026-2641MEDIUMuniversal-ctags V Language v.c parseExprList recursionEPSS 0.2%CVE-2023-53428MEDIUMpowercap: arm_scmi: Remove recursion while parsing zonesEPSS 0.2%CVE-2026-27014MEDIUMNanZip has ROMFS Archive Infinite Loop / Stack OverflowEPSS 0.2%CVE-2026-7453MEDIUMWRL File Parsing Memory Exhaustion in Autodesk 3ds MaxEPSS 0.2%CVE-2025-9714MEDIUMStack overflow in libxml2EPSS 0.2%CVE-2026-43896MEDIUMjq: Stack Overflow in Recursive Object MergeEPSS 0.2%CVE-2026-13757MEDIUMP11-kit: stack exhaustion via unbounded recursion in rpc attribute parsingEPSS 0.1%CVE-2025-55095MEDIUMThe function _ux_host_class_storage_media_mount() is responsible for mounting partitions on a USB mass storage device. When it encounters anEPSS 0.1%CVE-2026-47770MEDIUMjq: stack overflow in deep structural equalityEPSS 0.1%CVE-2026-33902MEDIUMImageMagick: Stack Overflow via Recursive FX Expression ParsingEPSS 0.1%CVE-2026-1681MEDIUMnet: Stack Overflow with Ping (to own IP Address) via ShellEPSS 0.1%CVE-2026-5408MEDIUMUncontrolled Recursion in WiresharkEPSS 0.1%CVE-2026-5409MEDIUMUncontrolled Recursion in WiresharkEPSS 0.1%CVE-2025-67899LOWuriparser through 0.9.9 allows unbounded recursion and stack consumption, as demonstrated by ParseMustBeSegmentNzNc with large input containEPSS 0.1%CVE-2025-43718LOWPoppler 24.06.1 through 25.x before 25.04.0 allows stack consumption and a SIGSEGV via deeply nested structures within the metadata (such asEPSS 0.1%CVE-2026-59168MEDIUMDasel: Unbounded recursion in JSON and XML readers causes unrecoverable stack-overflow DoSEPSS 0.1%CVE-2025-24302MEDIUMUncontrolled recursion for some TinyCBOR libraries maintained by Intel(R) before version 0.6.1 may allow an authenticated user to potentiallEPSS 0.1%CVE-2026-78228MEDIUMUnbounded handle_error recursion enables denial of service in AshOban triggersEPSS 0.1%CVE-2026-75758MEDIUMUnbounded recursion between Inspect.List charlist rendering and List.to_string/1 error path in ElixirEPSS 0.1%