Falhas do tipo CWE-674

347 resultados

Recursão descontrolada

Acontece quando uma função chama a si mesma (ou é chamada indiretamente por outra) sem limite adequado de profundidade, consumindo toda a memória da pilha (stack overflow). O atacante pode fornecer entrada malformada ou estruturas aninhadas excessivas para disparar recursões infinitas e derrubar a aplicação.

Exemplo

Um parser XML ou JSON que processa estruturas aninhadas recursivamente: se o atacante envia um documento com milhares de níveis de aninhamento, cada chamada recursiva consome espaço da pilha até esgotar e derrubar o processo. Outro caso: função que processa árvores sem verificar profundidade máxima.

Como mitigar

Implemente limite explícito de profundidade (máximo de níveis de recursão) e valide entrada antes de processar. Use iteração (loop) em vez de recursão quando possível, ou monitore o consumo de pilha em tempo de execução com alertas de limite.

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%