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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub_MCNA
7.5 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVEADP
---
---
CISA-ADPADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 91%
VendorProductVersion
rust-langregex
𝑥
< 1.5.5
debiandebian_linux
9.0
debiandebian_linux
10.0
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
firefox
sid
132.0.1-1
fixed
bullseye
no-dsa
buster
no-dsa
firefox-esr
bullseye
115.14.0esr-1~deb11u1
no-dsa
buster
no-dsa
bullseye (security)
128.4.0esr-1~deb11u1
fixed
bookworm
115.14.0esr-1~deb12u1
fixed
bookworm (security)
128.4.0esr-1~deb12u1
fixed
trixie
128.3.1esr-2
fixed
sid
128.4.0esr-1
fixed
rust-regex
bullseye
no-dsa
buster
no-dsa
bookworm
1.7.1-1
fixed
sid
1.10.6-1
fixed
trixie
1.10.6-1
fixed
thunderbird
bullseye
1:115.12.0-1~deb11u1
no-dsa
buster
no-dsa
bullseye (security)
1:128.4.0esr-1~deb11u1
fixed
bookworm
1:115.12.0-1~deb12u1
fixed
bookworm (security)
1:128.4.0esr-1~deb12u1
fixed
sid
1:128.4.0esr-1
fixed
trixie
1:128.4.0esr-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
firefox
lunar
Fixed 1:1snap1-0ubuntu1
released
kinetic
Fixed 1:1snap1-0ubuntu1
released
jammy
Fixed 1:1snap1-0ubuntu1
released
impish
Fixed 99.0+build2-0ubuntu0.21.10.2
released
focal
Fixed 99.0+build2-0ubuntu0.20.04.2
released
bionic
Fixed 99.0+build2-0ubuntu0.18.04.2
released
xenial
ignored
trusty
ignored
rust-regex
lunar
not-affected
kinetic
ignored
jammy
Fixed 1.5.4-1ubuntu0.1
released
impish
ignored
focal
Fixed 1.2.1-3ubuntu0.1
released
xenial
ignored
trusty
ignored
thunderbird
lunar
not-affected
kinetic
not-affected
jammy
not-affected
impish
Fixed 1:91.8.1+build1-0ubuntu0.21.10.1
released
focal
Fixed 1:91.8.1+build1-0ubuntu0.20.04.1
released
bionic
Fixed 1:91.8.1+build1-0ubuntu0.18.04.1
released
References