1. CVE archive
  2. Vulnerability types
  3. CWE-1333
CWE-1333 · #82 most frequent type in the archive

Inefficient Regular Expression Complexity

The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

Part of: CWE-407 · Inefficient Algorithmic Complexity

534CVEs of this type in the archive
7critical (CVSS ≥ 9)
332high severity (7–8.9)
Dec 2, 2026latest published

What it is

The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

Impact on systems

ScopeImpact
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.

How to prevent it

Architecture and Design Use regular expressions that do not support backtracking, e.g. by removing nested quantifiers.
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.
Implementation Do not use regular expressions with untrusted input. If regular expressions must be used, avoid using backtracking in the expression.
Implementation Limit the length of the input that the regular expression will process.

Source: MITRE CWE catalog · Official entry on the MITRE website

CWE-1333 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20172
20181
20192
20201
202130
202277
202384
202474
202574
2026189

All CWE-1333 CVEs

534 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.