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-3293 snowflakedb snowflake-jdbc JDBC URL SdkProxyRoutePlanner.java SdkProxyRoutePlanner redos — snowflake-jdbc 3.3 Low 2026-02-27
CVE-2026-26936 Inefficient Regular Expression Complexity in Kibana Leading to Denial of Service — Kibana 4.9 Medium 2026-02-26
CVE-2026-27904 minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions — minimatch 7.5 High 2026-02-26
CVE-2026-1388 Inefficient Regular Expression Complexity in GitLab — GitLab 7.5 High 2026-02-25
CVE-2026-26996 minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern — minimatch 7.5 - 2026-02-20
CVE-2026-2327 Markdown-It 安全漏洞 — markdown-it 5.3 Medium 2026-02-12
CVE-2025-69873 Ajv JSON schema validator 安全漏洞 — ajv 2.9 Low 2026-02-11
CVE-2026-26006 Redos (Regular Expression Denial of Service) at Code Extraction Block in significant-gravitas/autogpt — AutoGPT 6.5 Medium 2026-02-10
CVE-2026-25547 Uncontrolled Resource Consumption in @isaacs/brace-expansion — brace-expansion 7.5AI High AI 2026-02-04
CVE-2026-23897 Apollo Server is vulnerable to denial of service with `startStandaloneServer` — apollo-server 7.5 High 2026-02-04
CVE-2026-23956 seroval affected by Denial of Service via RegExp serialization — seroval 7.5 High 2026-01-22
CVE-2026-22809 tarteaucitron.js has Regular Expression Denial of Service (ReDoS) vulnerability — tarteaucitron.js 4.4 Medium 2026-01-13
CVE-2024-58340 LangChain <= 0.3.1 MRKLOutputParser ReDoS — LangChain 7.5AI High AI 2026-01-12
CVE-2026-22691 pypdf has possible long runtimes for malformed startxref — pypdf 6.5 - 2026-01-10
CVE-2026-21868 Flag Forge has ReDoS Vulnerability in User Profile Lookup API — flagForge 7.5 High 2026-01-08
CVE-2026-0668 VisualData extension: Regular Expression Denial of Service (ReDoS) via crafted user input — MediaWiki - VisualData Extension 7.5 - 2026-01-07
CVE-2026-0621 MCP TypeScript SDK UriTemplate Exploded Array Pattern ReDoS — MCP TypeScript SDK 8.7 High 2026-01-05
CVE-2025-68475 Fedify has ReDoS Vulnerability in HTML Parsing Regex — fedify 7.5 High 2025-12-22
CVE-2025-68142 PyMdown Extensions has ReDOS bug in Figure Capture extension — pymdown-extensions 7.5AI High AI 2025-12-16
CVE-2025-66020 Valibot has a ReDoS vulnerability in `EMOJI_REGEX` — valibot 7.5 High 2025-11-26
CVE-2025-62484 Zoom Workplace Clients - Inefficient Regular Expression Complexity — Zoom Workplace 8.1 High 2025-11-13
CVE-2025-61581 Apache Traffic Control: ReDoS issue in Traffic Router configuration — Apache Traffic Control 7.5AI High AI 2025-10-16
CVE-2025-61921 Sinatra has ReDoS vulnerability in ETag header value generation — sinatra 7.5AI High AI 2025-10-10
CVE-2025-6051 Regular Expression Denial of Service (ReDoS) in huggingface/transformers — huggingface/transformers 7.5 - 2025-09-14
CVE-2025-6638 Regular Expression Denial of Service (ReDoS) in huggingface/transformers — huggingface/transformers 7.5 - 2025-09-12
CVE-2025-58451 Cattown Vulnerable to Inefficient Regular Expression Complexity and Uncontrolled Resource Consumption — Cattown 7.5AI High AI 2025-09-08
CVE-2025-9670 mixmark-io turndown commonmark-rules.js redos — turndown 5.3 Medium 2025-08-29
CVE-2025-43764 Liferay Portal和Liferay DXP 安全漏洞 — Portal 6.5AI Medium AI 2025-08-23
CVE-2025-9308 yarnpkg Yarn request-manager.js setOptions redos — Yarn 3.3 Low 2025-08-21
CVE-2025-54363 knack 安全漏洞 — Knack 7.5AI High AI 2025-08-20

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