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-2025-25200 Koa has Inefficient Regular Expression Complexity — koa 7.5 - 2025-02-12
CVE-2025-0367 Regular Expression Denial of Service (ReDoS) in Splunk Supporting Add-on for Active Directory (SA-ldapsearch) — Splunk Supporting Add-on for Active Directory 6.5 Medium 2025-01-30
CVE-2024-41766 IBM Engineering Lifecycle Optimization - Publishing denial of service — Engineering Lifecycle Optimization Publishing 7.5 High 2025-01-04
CVE-2024-52798 path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x — path-to-regexp 5.3 - 2024-12-05
CVE-2024-54157 JetBrains YouTrack 安全漏洞 — YouTrack 4.3 Medium 2024-12-04
CVE-2024-10270 Org.keycloak:keycloak-services: keycloak denial of service 6.5 Medium 2024-11-25
CVE-2024-21539 ESLint Rewrite 安全漏洞 — @eslint/plugin-kit 7.5 High 2024-11-19
CVE-2024-52524 ReDoS in Giskard Scan text perturbation — giskard 9.1AI Critical AI 2024-11-14
CVE-2024-21538 cross-spawn 安全漏洞 — cross-spawn 7.5 High 2024-11-08
CVE-2024-49761 REXML ReDoS vulnerability — rexml 7.5 - 2024-10-28
CVE-2024-50574 JetBrains YouTrack 安全漏洞 — YouTrack 5.3 Medium 2024-10-28
CVE-2020-26311 GHSL-2020-312: Regular Expression Denial of Service (ReDoS) in useragent — useragent 7.5 - 2024-10-26
CVE-2020-26310 GHSL-2020-305: Regular Expression Denial of Service (ReDoS) in Pure JavaScript HTML5 Parser — Pure-JavaScript-HTML5-Parser 7.5 - 2024-10-26
CVE-2020-26309 GHSL-2020-303: Regular Expression Denial of Service (ReDoS) in nope-validator — nope-validator 7.5 - 2024-10-26
CVE-2020-26308 GHSL-2020-302: Regular Expression Denial of Service (ReDoS) in validate.js — validate.js 7.5 - 2024-10-26
CVE-2020-26307 GHSL-2020-301: Regular Expression Denial of Service (ReDoS) in HTML2Markdown — html2markdown 7.5 - 2024-10-26
CVE-2020-26306 GHSL-2020-296: Regular Expression Denial of Service (ReDoS) in Knwl.js — Knwl 7.5 - 2024-10-26
CVE-2020-26305 GHSL-2020-291: Regular Expression Denial of Service (ReDoS) in CommonRegexJS — CommonRegexJS 7.5 - 2024-10-26
CVE-2020-26304 GHSL-2020-290: Regular Expression Denial of Service (ReDoS) in foundation-sites — foundation-sites 7.5 - 2024-10-26
CVE-2020-26303 GHSL-2020-289: Regular Expression Denial of Service (ReDoS) in insane — insane 7.5 - 2024-10-26
CVE-2024-47889 Action Mailer has possible ReDoS vulnerability in block_format — rails 7.5 - 2024-10-16
CVE-2024-47888 Action Text has possible ReDoS vulnerability in plain_text_for_blockquote_node — rails 7.5 - 2024-10-16
CVE-2024-47887 Action Controller has possible ReDoS vulnerability in HTTP Token authentication — rails 7.5 - 2024-10-16
CVE-2024-9506 Regular Expression Denial of Service (ReDoS) — vue 3.7 Low 2024-10-15
CVE-2024-9277 Langflow HTTP POST Request utils.py redos — Langflow 3.5 Low 2024-09-27
CVE-2024-45813 ReDoS vulnerability in multiparametric routes in find-my-way — find-my-way 5.3 Medium 2024-09-18
CVE-2024-45801 Tampering by prototype polution in DOMPurify — DOMPurify 7.3 High 2024-09-16
CVE-2024-8124 Inefficient Regular Expression Complexity in GitLab — GitLab 7.5 High 2024-09-12
CVE-2024-45296 path-to-regexp outputs backtracking regular expressions — path-to-regexp 7.5 High 2024-09-09
CVE-2024-6232 Regular-expression DoS when parsing TarFile headers — CPython 6.5 - 2024-09-03

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