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.
CVE-2022-24713
This high-severity CVE scores 7.5 under NVD CVSS v3. EPSS exploit probability: 10.4%, top 7% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 7.5
- EG Score
- 7.5(medium)
- EPSS
- 96.2%
- KEV
- Not listed
Published
March 8, 2022
Last Modified
November 21, 2024
References (24)
- security-advisories@githubhttps://github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283e
- security-advisories@githubhttps://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8
- security-advisories@githubhttps://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw
- security-advisories@githubhttps://lists.debian.org/debian-lts-announce/2022/04/msg00003.html
- security-advisories@githubhttps://lists.debian.org/debian-lts-announce/2022/04/msg00009.html
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/
- security-advisories@githubhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/
- security-advisories@githubhttps://security.gentoo.org/glsa/202208-08
- security-advisories@githubhttps://security.gentoo.org/glsa/202208-14
- security-advisories@githubhttps://www.debian.org/security/2022/dsa-5113
- security-advisories@githubhttps://www.debian.org/security/2022/dsa-5118
- af854a3a-2127-422b-91ae-364da2661108https://github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283e
- af854a3a-2127-422b-91ae-364da2661108https://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8
- af854a3a-2127-422b-91ae-364da2661108https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw
Vendor Advisories for CVE-2022-24713(3)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(12)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | firefox-locale-ast (99.0+build2-0ubuntu0.20.04.2) @ focal | 2026-05-26 | ubuntu |
| ubuntu | librust-regex+unicode-case-dev (1.5.4-1ubuntu0.1) @ jammy | 2026-05-26 | ubuntu |
| redhat | thunderbird-0:91.8.0-1.el8_2 | 2022-04-12 | redhat |
| redhat | thunderbird-0:91.8.0-1.el8_1 | 2022-04-11 | redhat |
| redhat | thunderbird-0:91.8.0-1.el8_5 | 2022-04-11 | redhat |
| redhat | thunderbird-0:91.8.0-1.el7_9 | 2022-04-11 | redhat |
| redhat | thunderbird-0:91.8.0-1.el8_4 | 2022-04-11 | redhat |
| redhat | firefox-0:91.8.0-1.el8_2 | 2022-04-08 | redhat |
| redhat | firefox-0:91.8.0-1.el8_1 | 2022-04-08 | redhat |
| redhat | firefox-0:91.8.0-1.el8_4 | 2022-04-08 | redhat |
| redhat | firefox-0:91.8.0-1.el7_9 | 2022-04-08 | redhat |
| redhat | firefox-0:91.8.0-1.el8_5 | 2022-04-08 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(1 across 1 ecosystem)
crates.io(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| regex | — | 1.5.5 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(10)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
- Red HatRHSA-2022:1283LOW2022-04-05
RHSA-2022:1283 — Low
- Red HatRHSA-2022:1285LOW2022-04-05
RHSA-2022:1285 — Low
- Red HatRHSA-2022:1286LOW2022-04-05
RHSA-2022:1286 — Low
- Red HatRHSA-2022:1287LOW2022-04-05
RHSA-2022:1287 — Low
- Red HatRHSA-2022:1301LOW2022-04-05
RHSA-2022:1301 — Low
- Red HatRHSA-2022:1303LOW2022-04-05
RHSA-2022:1303 — Low
- Red HatRHSA-2022:1305LOW2022-04-05
RHSA-2022:1305 — Low
- Red HatRHSA-2022:1326LOW2022-04-05
RHSA-2022:1326 — Low
- UbuntuUSN-5370-1MEDIUM
Firefox vulnerabilities
- UbuntuUSN-5610-1MEDIUM
rust-regex vulnerability
Data Freshness Timeline
(refreshed 5× in last 7d / 34× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-12 05:44 UTCEPSS rescore
- 2026-07-11 08:25 UTCEPSS rescore
- 2026-07-09 19:07 UTCEPSS rescore
- 2026-07-08 15:12 UTCEPSS rescore
- 2026-07-07 13:44 UTCEPSS rescore
- 2026-07-05 02:28 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-04 06:29 UTCEPSS rescore
- 2026-07-01 15:04 UTCEPSS rescore
- 2026-06-29 19:02 UTCOSV refresh
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-29 14:04 UTCEPSS rescore
- 2026-06-28 14:06 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-28 04:54 UTCEPSS rescore
- 2026-06-27 03:07 UTCEPSS rescore
- 2026-06-25 13:48 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-24 14:03 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-23 21:31 UTCEPSS rescore
- 2026-06-22 14:24 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-21 01:58 UTCEPSS rescore
- 2026-06-18 17:51 UTCEPSS rescore
Show 43 moreShow fewer
- 2026-06-18 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-17 17:51 UTCEPSS rescore
- 2026-06-16 17:51 UTCEPSS rescore
- 2026-06-15 17:46 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-13 22:58 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 23:10 UTCEPSS rescore
- 2026-06-12 07:36 UTCOSV refresh
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-11 13:58 UTCEPSS rescore
- 2026-06-10 22:16 UTCEPSS rescore
- 2026-06-10 13:20 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-08 14:15 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-07 15:23 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-06 13:46 UTCEPSS rescore
- 2026-06-05 22:45 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-05 06:09 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-04 13:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 22:29 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-31 00:15 UTCEPSS rescore
- 2026-05-29 13:42 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-28 13:43 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-27 13:39 UTCEPSS rescore
- 2026-05-26 13:43 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 02:04 UTCEG score recompute
- 2026-05-26 02:04 UTCVendor advisory
Related CVEs(same vendor + same CWE)
Same vendor
10 shownmsrc · redhat
Same CWE
10 shownCWE-400
Frequently asked(5)
What is CVE-2022-24713?
When was CVE-2022-24713 disclosed?
Is CVE-2022-24713 actively exploited?
What is the CVSS score of CVE-2022-24713?
How do I remediate CVE-2022-24713?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2022-24713
Is Your Infrastructure Affected by CVE-2022-24713?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.