CVE-2022-24713
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
regexcrates.io | < 1.5.5 | 1.5.5 |
Affected products
86- osv-coords78 versionspkg:rpm/suse/MozillaFirefox&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/opensuse/macchina&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/git-delta&distro=openSUSE%20Tumbleweedpkg:rpm/suse/MozillaFirefox&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:cargo/regexpkg:rpm/almalinux/firefoxpkg:rpm/suse/MozillaFirefox&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/MozillaFirefox&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCLpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Manager%20Proxy%204.1pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/MozillaThunderbird&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3pkg:rpm/suse/MozillaThunderbird&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP3pkg:rpm/opensuse/MozillaThunderbird&distro=openSUSE%20Leap%2015.3pkg:rpm/almalinux/thunderbirdpkg:rpm/opensuse/rage-encryption&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/pleaser&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/parsec&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/parsec-tool&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/MozillaFirefox&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/bat&distro=openSUSE%20Tumbleweedpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/opensuse/firefox-esr&distro=openSUSE%20Tumbleweedpkg:rpm/suse/sccache&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3pkg:rpm/opensuse/aws-nitro-enclaves-cli&distro=openSUSE%20Leap%2015.4pkg:rpm/suse/afterburn&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/afterburn&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/afterburn&distro=SUSE%20Linux%20Enterprise%20Micro%205.5pkg:rpm/suse/afterburn&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/rustup&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP3pkg:rpm/opensuse/rustup&distro=openSUSE%20Leap%2015.3pkg:rpm/suse/aws-nitro-enclaves-cli&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Public%20Cloud%2015%20SP4pkg:rpm/opensuse/spotifyd&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/sccache&distro=openSUSE%20Leap%2015.5pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP3pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP2pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Manager%20Server%204.1pkg:rpm/suse/MozillaThunderbird&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP4pkg:rpm/suse/MozillaFirefox&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/opensuse/MozillaFirefox&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/sccache&distro=openSUSE%20Leap%2015.3pkg:rpm/suse/sccache&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4pkg:rpm/suse/sccache&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP5pkg:rpm/opensuse/sccache&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/kanidm&distro=openSUSE%20Leap%2015.6pkg:rpm/opensuse/sccache&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/pijul&distro=openSUSE%20Tumbleweedpkg:rpm/suse/kanidm&distro=SUSE%20Package%20Hub%2015%20SP6pkg:rpm/opensuse/juliaup&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/tuigreet&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/cargo-audit&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/treefetch&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/rustup&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/firecracker&distro=openSUSE%20Tumbleweed
< 91.8.0-112.98.1+ 77 more
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 91.8.0-78.170.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 6.0.6~git0.c21ce78-2.1
- (no CPE)range: < 0.12.1-1.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 1.5.5
- (no CPE)range: < 91.8.0-1.el8_5.alma
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.8.65.1
- (no CPE)range: < 91.8.0-150200.8.65.1
- (no CPE)range: < 91.8.0-150200.8.65.1
- (no CPE)range: < 91.8.0-1.el8_5.alma
- (no CPE)range: < 0.7.1+0-2.1
- (no CPE)range: < 0.5.1~git0.ce9627c-4.1
- (no CPE)range: < 1.0.0~rc3-1.1
- (no CPE)range: < 0.5.2-1.1
- (no CPE)range: < 99.0-1.1
- (no CPE)range: < 0.21.0-1.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-112.98.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 128.5.1-1.1
- (no CPE)range: < 0.3.0~git5.14a4b8b-150300.7.9.1
- (no CPE)range: < 1.2.2~git0.4ccc639-150400.3.3.1
- (no CPE)range: < 5.9.0.git21.a73f509-150400.3.3.1
- (no CPE)range: < 5.9.0.git21.a73f509-150300.3.5.1
- (no CPE)range: < 5.9.0.git21.a73f509-150500.3.3.1
- (no CPE)range: < 5.9.0.git21.a73f509-150400.3.3.1
- (no CPE)range: < 91.8.0-150000.150.27.1
- (no CPE)range: < 1.25.1~0-150300.7.13.2
- (no CPE)range: < 1.25.1~0-150300.7.13.2
- (no CPE)range: < 1.2.2~git0.4ccc639-150400.3.3.1
- (no CPE)range: < 0.3.3-5.1
- (no CPE)range: < 0.4.2~3-150400.3.3.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.8.65.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 91.8.0-150200.152.26.1
- (no CPE)range: < 0.3.0~git5.14a4b8b-150300.7.9.1
- (no CPE)range: < 0.4.2~3-150400.3.3.1
- (no CPE)range: < 0.4.2~3-150400.3.3.1
- (no CPE)range: < 0.4.2~3-150400.3.3.1
- (no CPE)range: < 1.3.3~git0.f075d13-bp156.4.1
- (no CPE)range: < 0.2.15~git0.6b6d2f7-11.1
- (no CPE)range: < 1.0.0~beta.2-1.1
- (no CPE)range: < 1.3.3~git0.f075d13-bp156.4.1
- (no CPE)range: < 1.5.37-2.1
- (no CPE)range: < 0.7.1-4.1
- (no CPE)range: < 0.16.0~git0.625c965-3.1
- (no CPE)range: < 2.0.0~git0.5b3eac1-2.1
- (no CPE)range: < 1.24.3~0-3.1
- (no CPE)range: < 1.0.0-2.1
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*+ 2 more
- cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
Patches
Vulnerability mechanics
References
18- github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283envdPatchThird Party AdvisoryWEB
- github.com/advisories/GHSA-m5pq-gvj9-9vr8ghsaADVISORY
- github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8nvdThird Party AdvisoryWEB
- groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7YwnvdThird Party AdvisoryWEB
- lists.debian.org/debian-lts-announce/2022/04/msg00003.htmlnvdMailing ListThird Party AdvisoryWEB
- lists.debian.org/debian-lts-announce/2022/04/msg00009.htmlnvdMailing ListThird Party AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2022-24713ghsaADVISORY
- security.gentoo.org/glsa/202208-08nvdThird Party AdvisoryWEB
- security.gentoo.org/glsa/202208-14nvdThird Party AdvisoryWEB
- www.debian.org/security/2022/dsa-5113nvdThird Party AdvisoryWEB
- www.debian.org/security/2022/dsa-5118nvdThird Party AdvisoryWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67TghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6HghsaWEB
- lists.fedoraproject.org/archives/list/[email protected]/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJghsaWEB
- rustsec.org/advisories/RUSTSEC-2022-0013.htmlghsaWEB
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/nvd
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/nvd
News mentions
0No linked articles in our index yet.