CVE-2022-24713
Apache regex Denial of Service Vulnerability
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.
INFO
Published Date :
March 8, 2022, 7:15 p.m.
Last Modified :
Nov. 21, 2024, 6:50 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
3.9
Public PoC/Exploit Available at Github
CVE-2022-24713 has a 9 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2022-24713
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-24713
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
All CVE - PoC in GitHub
poc proofofconcept tester allcve cvegithub cvenew cvepoc cveupdate
None
None
None
None
Dockerfile Go Shell
None
Shell
None
Proof of Concept/Test for CVE-2022-24713 on Ubuntu
Rust
List of RegEx DoS (ReDoS) CVEs and resources
security awesome redos regex dos regex-dos pentesting awesome-list regex-security
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-24713
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-24713
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283e Added Reference https://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8 Added Reference https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw Added Reference https://lists.debian.org/debian-lts-announce/2022/04/msg00003.html Added Reference https://lists.debian.org/debian-lts-announce/2022/04/msg00009.html Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/ Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/ Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/ Added Reference https://security.gentoo.org/glsa/202208-08 Added Reference https://security.gentoo.org/glsa/202208-14 Added Reference https://www.debian.org/security/2022/dsa-5113 Added Reference https://www.debian.org/security/2022/dsa-5118 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/ [No types assigned] Added Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/ [No types assigned] Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/ Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/ Removed Reference GitHub, Inc. https://lists.fedoraproject.org/archives/list/[email protected]/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/ -
Reanalysis by [email protected]
Jul. 06, 2023
Action Type Old Value New Value Removed CWE NIST CWE-400 Added CWE NIST CWE-1333 -
Modified Analysis by [email protected]
Jan. 20, 2023
Action Type Old Value New Value Changed Reference Type https://security.gentoo.org/glsa/202208-08 No Types Assigned https://security.gentoo.org/glsa/202208-08 Third Party Advisory Changed Reference Type https://security.gentoo.org/glsa/202208-14 No Types Assigned https://security.gentoo.org/glsa/202208-14 Third Party Advisory -
CVE Modified by [email protected]
Aug. 10, 2022
Action Type Old Value New Value Added Reference https://security.gentoo.org/glsa/202208-14 [No Types Assigned] Added Reference https://security.gentoo.org/glsa/202208-08 [No Types Assigned] -
Modified Analysis by [email protected]
Jun. 04, 2022
Action Type Old Value New Value Changed Reference Type https://lists.debian.org/debian-lts-announce/2022/04/msg00003.html No Types Assigned https://lists.debian.org/debian-lts-announce/2022/04/msg00003.html Mailing List, Third Party Advisory Changed Reference Type https://lists.debian.org/debian-lts-announce/2022/04/msg00009.html No Types Assigned https://lists.debian.org/debian-lts-announce/2022/04/msg00009.html Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/ Mailing List, Third Party Advisory Changed Reference Type https://www.debian.org/security/2022/dsa-5113 No Types Assigned https://www.debian.org/security/2022/dsa-5113 Third Party Advisory Changed Reference Type https://www.debian.org/security/2022/dsa-5118 No Types Assigned https://www.debian.org/security/2022/dsa-5118 Third Party Advisory Added CWE NIST CWE-400 Changed CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:* Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Apr. 19, 2022
Action Type Old Value New Value Added Reference https://www.debian.org/security/2022/dsa-5118 [No Types Assigned] -
CVE Modified by [email protected]
Apr. 11, 2022
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2022/04/msg00009.html [No Types Assigned] -
CVE Modified by [email protected]
Apr. 07, 2022
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2022/04/msg00003.html [No Types Assigned] Added Reference https://www.debian.org/security/2022/dsa-5113 [No Types Assigned] -
CVE Modified by [email protected]
Mar. 26, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/ [No Types Assigned] -
Initial Analysis by [email protected]
Mar. 17, 2022
Action Type Old Value New Value Added CVSS V2 NIST (AV:N/AC:L/Au:N/C:N/I:N/A:P) Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283e No Types Assigned https://github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283e Patch, Third Party Advisory Changed Reference Type https://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8 No Types Assigned https://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8 Third Party Advisory Changed Reference Type https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw No Types Assigned https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/ Mailing List, Third Party Advisory Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/ Mailing List, Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:rust-lang:regex:*:*:*:*:*:rust:*:* versions up to (excluding) 1.5.5 Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Mar. 17, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/ [No Types Assigned] -
CVE Modified by [email protected]
Mar. 17, 2022
Action Type Old Value New Value Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/ [No Types Assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-24713
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-24713
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.32 }} -0.07%
score
0.70419
percentile