CVE-2022-24713: Regular expression denial of service in Rust's regex crate
Vulnerability summary
CVE-2022-24713 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in debian debian_linux. EPSS estimates a 14.46% chance of exploitation in the next 30 days, higher than 96.6% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 14% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 36 · Related 20Timeline
- 08-03-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
regex is an implementation of regular expressions for the Rust language. The regex crate features built-in mitigations to prevent denial of service attacks caused by untrusted regexes, or untrusted input matched by trusted regexes. Those (tunable) mitigations already provide sane defaults to prevent attacks. This guarantee is documented and it's considered part of the crate's API. Unfortunately a bug was discovered in the mitigations designed to prevent untrusted regexes to take an arbitrary amount of time during parsing, and it's possible to craft regexes that bypass such mitigations. This makes it possible to perform denial of service attacks by sending specially crafted regexes to services accepting user-controlled, untrusted regexes. All versions of the regex crate before or equal to 1.5.4 are affected by this issue. The fix is include starting from regex 1.5.5. All users accepting user-controlled regexes are recommended to upgrade immediately to the latest version of the regex crate. Unfortunately there is no fixed set of problematic regexes, as there are practically infinite regexes that could be crafted to exploit this vulnerability. Because of this, it us not recommend to deny known problematic regexes.
CVSS metrics
7 scores · 6 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · Crates.ioEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
14.46%
Chance of exploitation in the next 30 days
Percentile
97%
Versus all other CVEs
30-day change
No change 0.00 pp
From 14.46% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-1333Inefficient Regular Expression ComplexityThe product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Opensuse16 products
- bat&distro=openSUSE Tumbleweed< 0.21.0-1.1
- cargo-audit&distro=openSUSE Tumbleweed< 0.16.0~git0.625c965-3.1
- firecracker&distro=openSUSE Tumbleweed< 1.0.0-2.1
- git-delta&distro=openSUSE Tumbleweed< 0.12.1-1.1
- juliaup&distro=openSUSE Tumbleweed< 1.5.37-2.1
Alpine7 products
- bat< 0.18.3-r2 | < 0.21.0-r0
- delta< 0.13.0-r0
- firefox< 99.0-r0
- firefox-esr< 91.8.0-r0
- librewolf< 99.0-r0
Debian4 products
- firefox-esr< 91.8.0esr-1
- rust-regex< 1.5.5-1
- thunderbird< 1:91.8.0-1
- debian_linuxEOL9.0 | 10.0 | 11.0
Ubuntu3 products
- firefox< 99.0+build2-0ubuntu0.18.04.2 | < 99.0+build2-0ubuntu0.20.04.2 | < 1:1snap1-0ubuntu1
- rust-regex< 1.2.1-3ubuntu0.1 | < 1.5.4-1ubuntu0.1
- thunderbird< 1:91.8.1+build1-0ubuntu0.18.04.1 | < 1:91.8.1+build1-0ubuntu0.20.04.1
Crates.Io1 product
- regex< 1.5.5 | ≥ 0.0.0-0, < 1.5.5
Fedoraproject1 product
- fedoraEOL34 | 35 | 36
Rust-lang1 product
- regex< 1.5.5
7 vendors · 33 products
References
27 links- github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8X Refsource CONFIRMREPORTWEBThird Party Advisory
- github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283eX Refsource MISCREPORTWEBPatchThird Party Advisory
- groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7YwX Refsource MISCREPORTWEBThird Party Advisory
- lists.debian.org/debian-lts-announce/2022/04/msg00003.htmlMailing ListX Refsource MLISTWEBThird Party Advisory
- lists.debian.org/debian-lts-announce/2022/04/msg00009.htmlMailing ListX Refsource MLISTWEBThird Party Advisory
Show all 27 references
- crates.io/crates/regexPACKAGE