Falhas do tipo CWE-674

458 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-47317MEDIUMUncontrolled Recursion vulnerability in Samsung Open Source Escargot allows Excessive Allocation. This issue affects Escargot: 590345cc6258EPSS 0.3%CVE-2026-45740MEDIUMprotobufjs: Denial of Service via unbounded recursive JSON descriptor expansionEPSS 0.3%CVE-2026-46373HIGHSQLFluff: Recursive Stack Overflow in ParserEPSS 0.3%CVE-2026-112368HIGHUnbounded Recursion in phongo_bson_visit_document/visit_array:EPSS 0.3%CVE-2025-4565HIGHUnbounded recursion in Python ProtobufEPSS 0.3%CVE-2026-92822MEDIUMLibmodulemd: libmodulemd: unbounded recursion when parsing nested xmd yamlEPSS 0.3%CVE-2026-100702HIGHNodemailer before 10.0.2 Stack Exhaustion via Nested Recipient ArraysEPSS 0.3%CVE-2026-25971MEDIUMImageMagick's MSL: Stack overflow in ProcessMSLScriptEPSS 0.2%CVE-2026-55594MEDIUMImageMagick: Stack Overflow in MVG decoder due to missing depth check.EPSS 0.2%CVE-2026-6936MEDIUMIBM i is Affected by a Denial of Service Vulnerability []EPSS 0.2%CVE-2025-8732MEDIUMlibxml2 xmlcatalog xmlParseSGMLCatalog recursionEPSS 0.2%CVE-2026-54888MEDIUMUncontrolled recursion over deeply nested Markdown crashes the BEAM in mdexEPSS 0.2%CVE-2020-36691MEDIUMAn issue was discovered in the Linux kernel before 5.8. lib/nlattr.c allows attackers to cause a denial of service (unbounded recursion) viaEPSS 0.2%CVE-2026-33947MEDIUMjq: Unbounded Recursion in jv_setpath(), jv_getpath() and delpaths_sorted()EPSS 0.2%CVE-2026-34536MEDIUMiccDEV: SO in SIccCalcOp::ArgsUsed()EPSS 0.2%CVE-2026-21500MEDIUMStack Overflow in iccDEV XML Calculator Macro ExpansionEPSS 0.2%CVE-2024-25112MEDIUMDenial of service due to unbounded recursion in QuickTimeVideo::multipleEntriesDecoder in Exiv2EPSS 0.2%CVE-2026-33320MEDIUMDasel has unbounded YAML alias expansion in dasel leads to CPU/memory denial of serviceEPSS 0.2%CVE-2024-4568LOWStack overflow in Xpdf 4.05 due to object loop in PDF resourcesEPSS 0.2%CVE-2025-10728CRITICALUncontrolled recursion in Qt SVG moduleEPSS 0.2%