7.5

CVE-2022-24713: Regular expression denial of service in Rust's regex crate

Modified
AliasesUBUNTU-CVE-2022-24713USN-5610-1DEBIAN-CVE-2022-24713
Published 08-03-2022Last modified 23-04-2025

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.

Priority
Prioritisesevere

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?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
14.46%
0%100%
Medium · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 36 · Related 20

Timeline

  1. 08-03-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Rust-lang1 product

7 vendors · 33 products

References

27 links
Show all 27 references