Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-1333 — Vulnerability Class 360

360 vulnerabilities classified as CWE-1333. AI Chinese analysis included.

CWE-1333 represents a software weakness where regular expressions exhibit inefficient, often exponential, worst-case computational complexity. This vulnerability is typically exploited through Regular Expression Denial of Service (ReDoS) attacks, where malicious actors craft specific input strings that trigger catastrophic backtracking within the regex engine. Such inputs force the processor to evaluate an excessive number of potential matches, consuming significant CPU resources and effectively halting application availability. To mitigate this risk, developers must prioritize regex optimization by avoiding nested quantifiers, minimizing ambiguity in pattern structures, and utilizing possessive quantifiers or atomic groups to prevent backtracking. Additionally, implementing strict input length limits and employing regex complexity analysis tools during the development lifecycle can help identify and eliminate inefficient patterns before deployment, ensuring robust application performance against adversarial inputs.

MITRE CWE Description
The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
Common Consequences (1)
Availability DoS: Resource Consumption (CPU)
Attackers can create crafted inputs that intentionally cause the regular expression to use excessive backtracking in a way that causes the CPU consumption to spike.
Mitigations (4)
Architecture and Design Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.
Effectiveness: High
System Configuration Set backtracking limits in the configuration of the regular expression implementation, such as PHP's pcre.backtrack_limit. Also consider limits on execution time for the process.
Effectiveness: Moderate
Implementation Do not use regular expressions with untrusted input. If regular expressions must be used, avoid using backtracking in the expression.
Effectiveness: High
Implementation Limit the length of the input that the regular expression will process.
Effectiveness: Moderate
Examples (2)
This example attempts to check if an input string is a "sentence" [REF-1164].
var test_string = "Bad characters: $@#"; var bad_pattern  = /^(\w+\s?)*$/i; var result = test_string.search(bad_pattern);
Bad · JavaScript
var test_string = "Bad characters: $@#"; var good_pattern  = /^((?=(\w+))\2\s?)*$/i; var result = test_string.search(good_pattern);
Good · JavaScript
This example attempts to check if an input string is a "sentence" and is modified for Perl [REF-1164].
my $test_string = "Bad characters: \$\@\#"; my $bdrslt = $test_string; $bdrslt =~ /^(\w+\s?)*$/i;
Bad · Perl
my $test_string = "Bad characters: \$\@\#"; my $gdrslt = $test_string; $gdrslt =~ /^((?=(\w+))\2\s?)*$/i;
Good · Perl
CVE ID Title CVSS Severity Published
CVE-2026-77082 n8n before 1.123.69 ReDoS via Filter and Switch Node — n8n 5.3 Medium 2026-08-20
CVE-2026-62317 Logto: ReDoS via unescaped user input in email subaddressing regex (blockSubaddressing) — logto 7.5 High 2026-08-19
CVE-2026-62672 Grav: Authenticated ReDoS via regex_replace in Twig Sandbox — grav 6.0 Medium 2026-08-19
CVE-2026-59893 sqlparse: Inefficient Regex Handling of Dollar-Quoted SQL Literals Leads to ReDoS (Denial of Service) — sqlparse 7.5 High 2026-08-17
CVE-2026-69207 Hono: ReDoS in CORS middleware via Access-Control-Request-Headers — hono 5.3 Medium 2026-08-07
CVE-2026-66062 SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header — kit 5.3 Medium 2026-08-07
CVE-2026-67422 pymdown-extensions: Exponential-backtracking ReDoS in caret, tilde, betterem, and magiclink inline processors — pymdown-extensions 7.5 High 2026-08-06
CVE-2026-68749 Quadratic regex backtracking in the html_sanitize_ex CSS scrubber allows CPU-exhaustion denial of service — html_sanitize_ex 8.2 High 2026-08-06
CVE-2026-71190 OpenStack Swift 资源管理错误漏洞 — Swift 8.7 High 2026-08-05
CVE-2026-70493 Open WebUI: Any authenticated user can stall a worker via a knowledge-search pattern that backtracks catastrophically — open-webui 6.5 Medium 2026-08-04
CVE-2026-23985 Apache Superset: Regular Expression Denial of Service (ReDoS) in SQL Parser — Apache Superset 5.3 Medium 2026-07-30
CVE-2026-60075 Date::Manip versions through 7.00 for Perl allow CPU exhaustion via quadratic backtracking in the unanchored time substitution in _parse_time - - 2026-07-30
CVE-2026-16270 ReDoS in Open Mercato — Open Mercato - - 2026-07-22
CVE-2026-49485 HAPI FHIR: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint — org.hl7.fhir.core 7.5 High 2026-07-17
CVE-2026-52746 JSONata: Malicious inputs to "$toMillis" function can cause resource exhaustion — jsonata 7.5 High 2026-07-17
CVE-2026-14741 HTTP::Date versions before 6.08 for Perl allow CPU exhaustion via polynomial regex backtracking in parse_date — HTTP::Date - - 2026-07-17
CVE-2026-62237 Grav < 2.0.4 ReDoS via regex_replace in Sandbox — grav 6.5 Medium 2026-07-17
CVE-2026-45367 HAPI FHIR: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint — org.hl7.fhir.core 7.5 High 2026-07-16
CVE-2026-48801 linkify-it: Quadratic algorithmic complexity in LinkifyIt#match scan loop — linkify-it - - 2026-07-14
CVE-2026-45305 Symfony: YAML Parser ReDoS via Catastrophic Backtracking in Parser::cleanup() Regex — symfony - - 2026-07-14
CVE-2026-6850 Crafted message attachment causes client-side denial of service via markdown parser regex backtracking in Mattermost — Mattermost 6.5 Medium 2026-07-13
CVE-2026-57584 Phalcon: Catastrophic backtracking (ReDoS) in the default Phalcon Router route lead to remote unauthenticated DoS — cphalcon - - 2026-07-10
CVE-2026-59220 Open WebUI: ReDoS in skill-mention regexes causes whole-instance DoS on default config — open-webui 6.5 Medium 2026-07-09
CVE-2026-55470 HAPI FHIR: DSTU2 FHIRPathEngine.matches() missing RegexTimeout protection allows ReDoS — org.hl7.fhir.core 7.5 High 2026-07-08
CVE-2026-15154 Guardrails-detectors: guardrails-detectors: unauthenticated regular-expression denial of service (redos) via detector_params.regex 6.5 Medium 2026-07-08
CVE-2026-14895 String::Util versions before 1.36 for Perl are susceptible to a regular expression denial of service — String::Util - - 2026-07-07
CVE-2026-55574 vLLM: ReDoS via structured_outputs.regex compiled without timeout in xgrammar and outlines backends — vllm - - 2026-07-06
CVE-2026-58578 LobeChat < 2.2.10-canary.15 - Regular Expression Denial of Service in GitHub Skill Import — lobehub 6.5 Medium 2026-07-02
CVE-2026-52794 Sentry: Inefficient Regular Expression Complexity in sentry — sentry 7.5 High 2026-06-24
CVE-2025-71379 vllm - Regular Expression Denial of Service in Multiple Components — vllm 4.3 Medium 2026-06-20

Vulnerabilities classified as CWE-1333 represent 360 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.