Falhas do tipo CWE-1333

407 resultados

Expressão regular com complexidade exponencial (ReDoS)

A aplicação usa uma regex que, em certos padrões de entrada, causa backtracking excessivo e consome CPU de forma exponencial. O motor regex tenta múltiplas combinações de correspondência antes de falhar ou suceder, podendo travar a aplicação ou deixá-la lenta demais para responder.

Exemplo

Um validador de email com regex como `(a+)+b` recebe a string `aaaaaaaaaaaaaaaaaaaaX` (sem o caractere final esperado). O motor testa todas as combinações de agrupamento do `a` repetido, levando tempo exponencial em relação ao tamanho da entrada.

Como mitigar

Use bibliotecas de parsing ou validação especializadas em vez de regex complexas (ex: bibliotecas de email ou URL). Se regex for necessária, teste com inputs longos malformados, limpe a entrada antes, ou use engines regex com proteção contra backtracking (como a do Rust).

CVE-2025-68142LOWPyMdown Extensions has ReDOS bug in Figure Capture extensionEPSS 0.5%CVE-2026-16270MEDIUMReDoS in Open MercatoEPSS 0.5%CVE-2025-71379MEDIUMvllm - Regular Expression Denial of Service in Multiple ComponentsEPSS 0.5%CVE-2025-9670MEDIUMmixmark-io turndown commonmark-rules.js redosEPSS 0.5%CVE-2020-26305HIGHGHSL-2020-291: Regular Expression Denial of Service (ReDoS) in CommonRegexJSEPSS 0.5%CVE-2024-41766HIGHIBM Engineering Lifecycle Optimization - Publishing denial of serviceEPSS 0.5%CVE-2026-27904HIGHminimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressionsEPSS 0.5%CVE-2024-58340HIGHLangChain <= 0.3.1 MRKLOutputParser ReDoSEPSS 0.5%CVE-2025-10990HIGHRexml: rexml: denial of service via inefficient regex parsingEPSS 0.5%CVE-2026-0668MEDIUMVisualData extension: Regular Expression Denial of Service (ReDoS) via crafted user inputEPSS 0.5%CVE-2026-52794HIGHSentry: Inefficient Regular Expression Complexity in sentryEPSS 0.5%CVE-2026-76821HIGHOpenCTI: User-Controlled ReDoS in JSON Ingestion MapperEPSS 0.5%CVE-2026-15154MEDIUMGuardrails-detectors: guardrails-detectors: unauthenticated regular-expression denial of service (redos) via detector_params.regexEPSS 0.5%CVE-2025-1194MEDIUMRegular Expression Denial of Service (ReDoS) in huggingface/transformersEPSS 0.5%CVE-2024-3114MEDIUMUncontrolled Resource Consumption in GitLabEPSS 0.5%CVE-2020-26306HIGHGHSL-2020-296: Regular Expression Denial of Service (ReDoS) in Knwl.jsEPSS 0.5%CVE-2020-26309HIGHGHSL-2020-303: Regular Expression Denial of Service (ReDoS) in nope-validatorEPSS 0.5%CVE-2026-42567MEDIUMSvelte: ReDoS in `<svelte:element>` Tag ValidationEPSS 0.5%CVE-2026-68749HIGHQuadratic regex backtracking in the html_sanitize_ex CSS scrubber allows CPU-exhaustion denial of serviceEPSS 0.4%CVE-2026-30925HIGHParse Server affected by Regular Expression Denial of Service (ReDoS) via `$regex` query in LiveQueryEPSS 0.4%