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-2021-3820MEDIUMInefficient Regular Expression Complexity in pksunkara/inflectEPSS 1.2%CVE-2023-33289HIGHThe urlnorm crate through 0.1.4 for Rust allows Regular Expression Denial of Service (ReDos) via a crafted URL to lib.rs. NOTE: the SupplierEPSS 1.2%CVE-2023-30858MEDIUMDenosaurs emoji has ReDoS vulnerability in `replace` function EPSS 1.2%CVE-2022-37620HIGHA Regular Expression Denial of Service (ReDoS) flaw was found in kangax html-minifier 4.0.0 because of the reCustomIgnore regular expressionEPSS 1.2%CVE-2023-34104HIGHRegex Injection via Doctype EntitiesEPSS 1.1%CVE-2023-24038HIGHThe HTML-StripScripts module through 1.06 for Perl allows _hss_attval_style ReDoS because of catastrophic backtracking for HTML content withEPSS 1.1%CVE-2023-43646HIGHInefficient Regular Expression Complexity in get-func-nameEPSS 1.1%CVE-2019-25102MEDIUMsimple-markdown simple-markdown.js redosEPSS 1.1%CVE-2021-43308MEDIUMExponential ReDoS in markdown-link-extractorEPSS 1.1%CVE-2024-10624HIGHRegular Expression Denial of Service (ReDoS) in gradio-app/gradioEPSS 1.1%CVE-2024-47887MEDIUMAction Controller has possible ReDoS vulnerability in HTTP Token authenticationEPSS 1.0%CVE-2021-3801HIGHInefficient Regular Expression Complexity in prismjs/prismEPSS 1.0%CVE-2023-32758HIGHgiturlparse (aka git-url-parse) through 1.2.2, as used in Semgrep 1.5.2 through 1.24.1, is vulnerable to ReDoS (Regular Expression Denial ofEPSS 1.0%CVE-2023-29486CRITICALAn issue was discovered in Heimdal Thor agent versions 3.4.2 and before 3.7.0 on Windows, allows attackers to bypass USB access restrictionsEPSS 1.0%CVE-2023-45806MEDIUMDiscourse vulnerable to DoS via Regexp Injection in Full NameEPSS 1.0%CVE-2023-6159MEDIUMInefficient Regular Expression Complexity in GitLabEPSS 1.0%CVE-2022-2908MEDIUMA potential DoS vulnerability was discovered in Gitlab CE/EE versions starting from 10.7 before 15.1.5, all versions starting from 15.2 befoEPSS 1.0%CVE-2017-20162MEDIUMvercel ms index.js parse redosEPSS 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%