Falhas do tipo CWE-674

346 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-2024-42369MEDIUMA room with itself as a its predecessor will freeze matrix-js-sdkEPSS 0.5%CVE-2026-32944HIGHParse Server crash via deeply nested query condition operatorsEPSS 0.5%CVE-2026-68073HIGHApache Qpid Broker-J: Unbounded type nesting can lead to pre-authentication stack overflowEPSS 0.5%CVE-2025-32387MEDIUMHelm Allows A Specially Crafted JSON Schema To Cause A Stack OverflowEPSS 0.5%CVE-2026-67552HIGHApache Qpid Proton Dotnet: Unbounded type nesting can lead to pre-authentication stackoverflowEPSS 0.5%CVE-2026-63462HIGHUnleash: Unauthenticated single-request DoS via OpenAPI validation error formatterEPSS 0.5%CVE-2021-41737HIGHIn Faust 2.23.1, an input file with the lines "// r visualisation tCst" and "//process = +: L: abM-^Q;" and "process = route(333333333333333EPSS 0.5%CVE-2023-2663LOWStack overflow in Xpdf 4.04 due to object loop in PDF page label treeEPSS 0.5%CVE-2026-56148MEDIUMUncontrolled Recursion in Elasticsearch Leading to Denial of ServiceEPSS 0.5%CVE-2025-23325HIGHNVIDIA Triton Inference Server for Windows and Linux contains a vulnerability where an attacker could cause uncontrolled recursion through aEPSS 0.5%CVE-2026-48506HIGHMessagePack-CSharp: MessagePackReader.Skip can recurse without enforcing maximum object graph depthEPSS 0.5%CVE-2026-6479HIGHPostgreSQL SSL/GSS init causes denial of service, via uncontrolled recursionEPSS 0.5%CVE-2026-33532MEDIUMyaml is vulnerable to Stack Overflow via deeply nested YAML collectionsEPSS 0.5%CVE-2026-45205MEDIUMApache Commons Configuration: StackOverflowError for YAML input with cyclesEPSS 0.5%CVE-2026-40345HIGHdeepmerge-ts: Stack exhaustion when merging recursive object graphsEPSS 0.5%CVE-2024-0210HIGHUncontrolled Recursion in WiresharkEPSS 0.5%CVE-2025-57809HIGHXGrammar affected by Denial of Service by infinite recursion grammarsEPSS 0.5%CVE-2026-67215HIGHcJSON JSON Patch copy/add Uncontrolled Recursion Stack ExhaustionEPSS 0.5%CVE-2024-53090HIGHafs: Fix lock recursionEPSS 0.5%CVE-2026-48712HIGHprotobufjs: Denial of service through unbounded Any expansion during JSON conversionEPSS 0.5%