Falhas do tipo CWE-1333

484 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-2021-4305LOWWoorank robots-txt-guard patterns.js makePathPattern redosEPSS 1.0%CVE-2015-10005LOWmarkdown-it html_re.js redosEPSS 1.0%CVE-2021-4299MEDIUMcronvel string-kit naturalSort.js naturalSort redosEPSS 1.0%CVE-2023-45806MEDIUMDiscourse vulnerable to DoS via Regexp Injection in Full NameEPSS 1.0%CVE-2021-43309MEDIUMReDoS in uri-template-lite URI.expand functionEPSS 1.0%CVE-2021-4306LOWcronvel terminal-kit redosEPSS 1.0%CVE-2023-6159MEDIUMInefficient Regular Expression Complexity in GitLabEPSS 1.0%CVE-2024-47888MEDIUMAction Text has possible ReDoS vulnerability in plain_text_for_blockquote_nodeEPSS 1.0%CVE-2023-30608MEDIUMParser contains an inefficient regular expression in sqlparseEPSS 1.0%CVE-2024-21503MEDIUMVersions of the package black before 24.3.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via the lines_with_leading_tabs_eEPSS 1.0%CVE-2024-9277MEDIUMLangflow HTTP POST Request utils.py redosEPSS 1.0%CVE-2023-45813MEDIUMInefficient Regular Expression Complexity in TorBotEPSS 1.0%CVE-2018-25074LOWPrestaul skeemas base.js redosEPSS 1.0%CVE-2023-3994HIGHInefficient Regular Expression Complexity in GitLabEPSS 1.0%CVE-2025-6998HIGHCalibre Web 0.6.24 & Autocaliweb 0.7.0 - ReDoSEPSS 1.0%CVE-2024-3772MEDIUMRegular expression denial of service in Pydantic < 2.4.0EPSS 1.0%CVE-2022-42964MEDIUMExponential ReDoS in pymatgen leads to denial of serviceEPSS 1.0%CVE-2022-42965LOWExponential ReDoS in snowflake-connector-python leads to denial of serviceEPSS 1.0%CVE-2018-25079MEDIUMSegmentio is-url index.js redosEPSS 1.0%CVE-2024-12391MEDIUMRegular Expression Denial of Service (ReDoS) in binary-husky/gpt_academicEPSS 0.9%