CVE-2022-24713
published high CVSS 3.1 · 7.5Regular expression denial of service in Rust's regex crate
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rust-lang | — | regex< 1.5.5 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2022-1789 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-3076 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1283 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | firefox | Advisory build | 91.8.0-1.el8_5.alma | ALSA-2022:1287 |
| Alpine Linux | edge | bat | Fixed | 0.21.0-r0 | Package fix record |
| Debian | bullseye | firefox-esr | Advisory build | 91.8.0esr-1~deb11u1 | DSA-5113-1 |
| Oracle Linux | 7 | firefoxaarch64 | Advisory build | 0:91.8.0-1.0.1.el7_9 | ELSA-2022-1284 |
Show 96 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-7 | firefoxi686 | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| AlmaLinux | 8 | thunderbird | Advisory build | 91.8.0-1.el8_5.alma | ALSA-2022:1301 |
| AlmaLinux | 8 | thunderbird | Advisory build | 91.8.0-1.el8_5.alma.plus | ALSA-2022:1301 |
| Alpine Linux | edge | delta | Fixed | 0.13.0-r0 | Package fix record |
| Alpine Linux | edge | librewolf | Fixed | 99.0-r0 | Package fix record |
| Alpine Linux | edge | swayr | Fixed | 0.16.1-r0 | Package fix record |
| Alpine Linux | v3.15 | bat | Fixed | 0.18.3-r2 | Package fix record |
| Alpine Linux | v3.15 | firefox-esr | Fixed | 91.8.0-r0 | Package fix record |
| Alpine Linux | v3.16 | bat | Fixed | 0.21.0-r0 | Package fix record |
| Alpine Linux | v3.16 | delta | Fixed | 0.13.0-r0 | Package fix record |
| Alpine Linux | v3.16 | firefox | Fixed | 99.0-r0 | Package fix record |
| Alpine Linux | v3.16 | firefox-esr | Fixed | 91.8.0-r0 | Package fix record |
| Alpine Linux | v3.16 | swayr | Fixed | 0.16.1-r0 | Package fix record |
| Alpine Linux | v3.16 | thunderbird | Fixed | 91.8.0-r0 | Package fix record |
| Alpine Linux | v3.17 | bat | Fixed | 0.21.0-r0 | Package fix record |
| Alpine Linux | v3.17 | delta | Fixed | 0.13.0-r0 | Package fix record |
| Alpine Linux | v3.17 | firefox | Fixed | 99.0-r0 | Package fix record |
| Alpine Linux | v3.17 | firefox-esr | Fixed | 91.8.0-r0 | Package fix record |
| Alpine Linux | v3.17 | swayr | Fixed | 0.16.1-r0 | Package fix record |
| Alpine Linux | v3.17 | thunderbird | Fixed | 91.8.0-r0 | Package fix record |
| Alpine Linux | v3.18 | bat | Fixed | 0.21.0-r0 | Package fix record |
| Alpine Linux | v3.18 | delta | Fixed | 0.13.0-r0 | Package fix record |
| Alpine Linux | v3.18 | firefox | Fixed | 99.0-r0 | Package fix record |
| Alpine Linux | v3.18 | firefox-esr | Fixed | 91.8.0-r0 | Package fix record |
| Alpine Linux | v3.18 | swayr | Fixed | 0.16.1-r0 | Package fix record |
| Alpine Linux | v3.18 | thunderbird | Fixed | 91.8.0-r0 | Package fix record |
| Alpine Linux | v3.19 | bat | Fixed | 0.21.0-r0 | Package fix record |
| Alpine Linux | v3.19 | firefox | Fixed | 99.0-r0 | Package fix record |
| Debian | bullseye | thunderbird | Advisory build | 1:91.8.0-1~deb11u1 | DSA-5118-1 |
| Debian | buster | firefox-esr | Advisory build | 91.8.0esr-1~deb10u1 | DSA-5113-1 |
| Debian | buster | thunderbird | Advisory build | 1:91.8.0-1~deb10u1 | DSA-5118-1 |
| Debian | stretch | firefox-esr | Advisory build | 91.8.0esr-1~deb9u1 | DLA-2971-1 |
| Debian | stretch | thunderbird | Advisory build | 1:91.8.0-1~deb9u1 | DLA-2978-1 |
| Oracle Linux | 7 | firefoxx86_64 | Advisory build | 0:91.8.0-1.0.1.el7_9 | ELSA-2022-1284 |
| Oracle Linux | 7 | thunderbirdaarch64 | Advisory build | 0:91.8.0-1.0.1.el7_9 | ELSA-2022-1302 |
| Oracle Linux | 7 | thunderbirdx86_64 | Advisory build | 0:91.8.0-1.0.1.el7_9 | ELSA-2022-1302 |
| Oracle Linux | 8 | firefoxaarch64 | Advisory build | 0:91.8.0-1.0.1.el8_5 | ELSA-2022-1287 |
| Oracle Linux | 8 | firefoxx86_64 | Advisory build | 0:91.8.0-1.0.1.el8_5 | ELSA-2022-1287 |
| Oracle Linux | 8 | thunderbirdaarch64 | Advisory build | 0:91.8.0-1.0.1.el8_5 | ELSA-2022-1301 |
| Oracle Linux | 8 | thunderbirdx86_64 | Advisory build | 0:91.8.0-1.0.1.el8_5 | ELSA-2022-1301 |
| Red Hat Enterprise Linux | RHEL-7 | firefoxppc64 | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| Red Hat Enterprise Linux | RHEL-7 | firefoxppc64le | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| Red Hat Enterprise Linux | RHEL-7 | firefoxs390x | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| Red Hat Enterprise Linux | RHEL-7 | firefoxsrc | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| Red Hat Enterprise Linux | RHEL-7 | firefoxx86_64 | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| Red Hat Enterprise Linux | RHEL-7 | firefox-debuginfoppc64 | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| Red Hat Enterprise Linux | RHEL-7 | firefox-debuginfoppc64le | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| Red Hat Enterprise Linux | RHEL-7 | firefox-debuginfos390x | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| Red Hat Enterprise Linux | RHEL-7 | firefox-debuginfox86_64 | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1284 |
| Red Hat Enterprise Linux | RHEL-7 | thunderbirdppc64le | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1302 |
| Red Hat Enterprise Linux | RHEL-7 | thunderbirdsrc | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1302 |
| Red Hat Enterprise Linux | RHEL-7 | thunderbirdx86_64 | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1302 |
| Red Hat Enterprise Linux | RHEL-7 | thunderbird-debuginfoppc64le | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1302 |
| Red Hat Enterprise Linux | RHEL-7 | thunderbird-debuginfox86_64 | Advisory build | 91.8.0-1.el7_9 | RHSA-2022:1302 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxaarch64 | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxaarch64 | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxaarch64 | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxppc64le | Advisory build | 91.8.0-1.el8_1 | RHSA-2022:1283 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxppc64le | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxppc64le | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxppc64le | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxs390x | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxs390x | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxs390x | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxsrc | Advisory build | 91.8.0-1.el8_1 | RHSA-2022:1283 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxsrc | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxsrc | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxsrc | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxx86_64 | Advisory build | 91.8.0-1.el8_1 | RHSA-2022:1283 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxx86_64 | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxx86_64 | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefoxx86_64 | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfoaarch64 | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfoaarch64 | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfoaarch64 | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfoppc64le | Advisory build | 91.8.0-1.el8_1 | RHSA-2022:1283 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfoppc64le | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfoppc64le | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfoppc64le | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfos390x | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfos390x | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfos390x | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfox86_64 | Advisory build | 91.8.0-1.el8_1 | RHSA-2022:1283 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfox86_64 | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfox86_64 | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debuginfox86_64 | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsourceaarch64 | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsourceaarch64 | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsourceaarch64 | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsourceppc64le | Advisory build | 91.8.0-1.el8_1 | RHSA-2022:1283 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsourceppc64le | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsourceppc64le | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsourceppc64le | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsources390x | Advisory build | 91.8.0-1.el8_2 | RHSA-2022:1286 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsources390x | Advisory build | 91.8.0-1.el8_4 | RHSA-2022:1285 |
| Red Hat Enterprise Linux | RHEL-8 | firefox-debugsources390x | Advisory build | 91.8.0-1.el8_5 | RHSA-2022:1287 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Showing the first 100 linked advisory records.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rust-lang | regex | < 1.5.5 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-400 CWE-400: Uncontrolled Resource Consumption
References
12- https://github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283e
- https://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8
- https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw
- [debian-lts-announce] 20220407 [SECURITY] [DLA 2971-1] firefox-esr security update https://lists.debian.org/debian-lts-announce/2022/04/msg00003.html
- [debian-lts-announce] 20220411 [SECURITY] [DLA 2978-1] thunderbird security update https://lists.debian.org/debian-lts-announce/2022/04/msg00009.html
- FEDORA-2022-8436ac4c39 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/
- FEDORA-2022-d20d44ba98 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/
- FEDORA-2022-ceb3e03c5e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/
- GLSA-202208-08 https://security.gentoo.org/glsa/202208-08
- GLSA-202208-14 https://security.gentoo.org/glsa/202208-14
- DSA-5113 https://www.debian.org/security/2022/dsa-5113
- DSA-5118 https://www.debian.org/security/2022/dsa-5118
Provider assertions
3GitHub_M · cna
Regular expression denial of service in Rust's regex crate
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fffc8b8726a4159d4d7d4b868e18c9a3f8b0b3dd1c976e3942adf5d50e140dd3
- Ingested
- 23 Sep 2026, 07:58:57 UTC
- Source record
- Official CVE record