Vulnerability
CVE-2022-24713
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.
76 advisories report this vulnerability, across 13 ecosystems.
Advisories
-
ALAS2-2022-1789
Amazon Linux 2 2017.12 - ALAS2-2022-1789: important priority package update for thunderbird
-
ALAS2-2025-3076
Amazon Linux 2 2017.12 - ALAS2-2025-3076: important priority package update for amazon-efs-utils
-
ALAS2023-2025-1283
Amazon Linux 2023 - ALAS2023-2025-1283: Important priority package update for amazon-efs-utils
-
ALPINE-CVE-2022-24713
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…
- ALPINE-EDGE-CVE-2022-24713
-
ALSA-2022:1287
Important: firefox security update
-
ALSA-2022:1301
Important: thunderbird security update
-
AZL-40907
CVE-2022-24713 affecting package librsvg2 for versions less than 2.58.1-1
-
AZL-45021
CVE-2022-24713 affecting package ripgrep 13.0.0-14
-
AZL-61405
CVE-2022-24713 affecting package rust for versions less than regex-1.8.4
-
AZL-62435
CVE-2022-24713 affecting package regexp 1.5-24
-
DEBIAN-CVE-2022-24713
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…
-
DLA-2971-1
firefox-esr - security update
-
DLA-2978-1
thunderbird - security update
-
DSA-5113-1
firefox-esr - security update
-
DSA-5118-1
thunderbird - security update
-
ELSA-2022-1284
ELSA-2022-1284: firefox security update (IMPORTANT)
-
ELSA-2022-1287
ELSA-2022-1287: firefox security update (IMPORTANT)
-
ELSA-2022-1301
ELSA-2022-1301: thunderbird security update (IMPORTANT)
-
ELSA-2022-1302
ELSA-2022-1302: thunderbird security update (IMPORTANT)
-
GHSA-m5pq-gvj9-9vr8
Rust's regex crate vulnerable to regular expression denial of service
-
OESA-2023-1673
firefox security update
-
OESA-2023-1674
firefox security update
-
RHSA-2022:1283
Red Hat Security Advisory: firefox security update
-
RHSA-2022:1284
Red Hat Security Advisory: firefox security update
-
RHSA-2022:1285
Red Hat Security Advisory: firefox security update
-
RHSA-2022:1286
Red Hat Security Advisory: firefox security update
-
RHSA-2022:1287
Red Hat Security Advisory: firefox security update
-
RHSA-2022:1301
Red Hat Security Advisory: thunderbird security update
-
RHSA-2022:1302
Red Hat Security Advisory: thunderbird security update
-
RHSA-2022:1303
Red Hat Security Advisory: thunderbird security update
-
RHSA-2022:1305
Red Hat Security Advisory: thunderbird security update
-
RHSA-2022:1326
Red Hat Security Advisory: thunderbird security update
-
RHVEX-CVE-2022-24713
Mozilla: Denial of Service via complex regular expressions
-
RLSA-2022:1287
Important: firefox security update
-
RLSA-2022:1301
Important: thunderbird security update
-
RUSTSEC-2022-0013
Regexes with large repetitions on empty sub-expressions take a very long time to parse
-
SUSE-RU-2022:1114-1
Security update for MozillaFirefox
-
SUSE-RU-2022:1125-1
Security update for MozillaFirefox
-
SUSE-RU-2022:14935-1
Recommended update for MozillaFirefox
-
SUSE-SU-2022:1127-1
Security update for MozillaFirefox
-
SUSE-SU-2022:1176-1
Security update for MozillaThunderbird
-
SUSE-SU-2022:3949-1
Security update for rustup
-
SUSE-SU-2022:4073-1
Security update for sccache
-
SUSE-SU-2023:1844-1
Security update for aws-nitro-enclaves-cli
-
SUSE-SU-2023:3526-1
Security update for sccache
-
SUSE-SU-2025:3783-1
Security update for afterburn
-
SUSE-SU-2025:3784-1
Security update for afterburn
-
SUSE-SU-2025:3785-1
Security update for afterburn
-
SUSE-SU-2025:3786-1
Security update for afterburn
-
SUSE-SU-2026:22917-1
Security update for afterburn
-
SUSE-SU-2026:23071-1
Security update for afterburn
-
SUSEVEX-CVE-2022-24713
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…
-
UBUNTU-CVE-2022-24713
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…
-
USN-5370-1
firefox vulnerabilities
-
USN-5610-1
rust-regex vulnerability
-
openSUSE-SU-2022:1127-1
Security update for MozillaFirefox
-
openSUSE-SU-2024:0294-1
Security update for kanidm
-
openSUSE-SU-2024:11913-1
juliaup-1.5.37-2.1 on GA media
-
openSUSE-SU-2024:11914-1
macchina-6.0.6~git0.c21ce78-2.1 on GA media
-
openSUSE-SU-2024:11917-1
treefetch-2.0.0~git0.5b3eac1-2.1 on GA media
-
openSUSE-SU-2024:11918-1
tuigreet-0.7.1-4.1 on GA media
-
openSUSE-SU-2024:11920-1
cargo-audit-0.16.0~git0.625c965-3.1 on GA media
-
openSUSE-SU-2024:11921-1
rage-encryption-0.7.1+0-2.1 on GA media
-
openSUSE-SU-2024:11922-1
rustup-1.24.3~0-3.1 on GA media
-
openSUSE-SU-2024:11923-1
sccache-0.2.15~git0.6b6d2f7-11.1 on GA media
-
openSUSE-SU-2024:11925-1
firecracker-1.0.0-2.1 on GA media
-
openSUSE-SU-2024:11928-1
pleaser-0.5.1~git0.ce9627c-4.1 on GA media
-
openSUSE-SU-2024:11937-1
git-delta-0.12.1-1.1 on GA media
-
openSUSE-SU-2024:11945-1
parsec-1.0.0~rc3-1.1 on GA media
-
openSUSE-SU-2024:11946-1
parsec-tool-0.5.2-1.1 on GA media
-
openSUSE-SU-2024:11948-1
spotifyd-0.3.3-5.1 on GA media
-
openSUSE-SU-2024:11975-1
MozillaFirefox-99.0-1.1 on GA media
-
openSUSE-SU-2024:12055-1
pijul-1.0.0~beta.2-1.1 on GA media
-
openSUSE-SU-2024:12131-1
bat-0.21.0-1.1 on GA media
-
openSUSE-SU-2024:14572-1
firefox-esr-128.5.1-1.1 on GA media
References
- 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
- https://lists.debian.org/debian-lts-announce/2022/04/msg00003.html
- https://lists.debian.org/debian-lts-announce/2022/04/msg00009.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/
- https://security.gentoo.org/glsa/202208-08
- https://security.gentoo.org/glsa/202208-14
- https://www.debian.org/security/2022/dsa-5113
- https://www.debian.org/security/2022/dsa-5118