Weaknesses of type CWE-674

346 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-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%