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-5406MEDIUMUncontrolled Recursion in WiresharkEPSS 0.2%CVE-2026-120689MEDIUMUncontrolled Recursion in HDF5 H5B__iterate_helper() via Crafted FileEPSS 0.2%CVE-2022-50407MEDIUMcrypto: hisilicon/qm - increase the memory of local variablesEPSS 0.2%CVE-2026-2641MEDIUMuniversal-ctags V Language v.c parseExprList recursionEPSS 0.2%CVE-2026-119591MEDIUMSQLite before 3.54.0 Stack Exhaustion via countOfViewOptimization() in VALUES ClauseEPSS 0.2%CVE-2025-11896LOWStack overflow in Xpdf 4.05 due to object loop in PDF CMapEPSS 0.2%CVE-2026-110263MEDIUMOW2 ASM 3.0 before 9.11 Uncontrolled Recursion in SignatureReaderEPSS 0.2%CVE-2026-110259MEDIUMOW2 ASM 3.0 before 9.11 Uncontrolled Recursion via ClassWriter.replaceAsmInstructions()EPSS 0.2%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.2%CVE-2026-16781MEDIUMSVG File Parsing Stack Exhaustion Vulnerability in Autodesk 3ds MaxEPSS 0.2%CVE-2026-14255MEDIUMIFC File Parsing Uncontrolled Recursion in Certain Autodesk ProductsEPSS 0.2%CVE-2023-53428MEDIUMpowercap: arm_scmi: Remove recursion while parsing zonesEPSS 0.2%CVE-2026-101180MEDIUMDoS vulnerability in the file parsing module. Impact: Successful exploitation of this vulnerability may affect availability.EPSS 0.2%CVE-2026-44777MEDIUMjq: stack overflow in module loading on mutual `include`EPSS 0.2%CVE-2026-40612MEDIUMjq: Stack overflow via unbounded recursion in jv_containsEPSS 0.2%CVE-2025-9714MEDIUMStack overflow in libxml2EPSS 0.2%CVE-2026-7453MEDIUMWRL File Parsing Memory Exhaustion in Autodesk 3ds MaxEPSS 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.2%CVE-2026-82797MEDIUMUncontrolled Recursion vulnerability in Samsung Open Source rlottie allows Serialized Data with Nested Payloads. This issue affects rlottieEPSS 0.1%