CVE-2022-24713

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-24713
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-24713.json
Aliases
Related
Published
2022-03-08T19:15:08Z
Modified
2023-11-29T09:28:50.616806Z
Details

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.

References

Affected packages

Git / github.com/rust-lang/regex

Affected ranges

Type
GIT
Repo
https://github.com/rust-lang/regex
Events
Introduced
0The exact introduced commit is unknown
Fixed

Affected versions

0.*

0.1.27
0.1.28
0.1.45
0.1.46
0.1.47
0.1.48
0.1.49
0.1.50
0.1.51
0.1.52
0.1.53
0.1.54
0.1.55
0.1.56
0.1.57
0.1.58
0.1.59
0.1.60
0.1.61
0.1.62
0.1.63
0.1.64
0.1.65
0.1.66
0.1.67
0.1.68
0.1.69
0.1.70
0.1.71
0.1.72
0.1.73
0.1.74
0.1.75
0.1.76
0.1.77
0.1.78
0.1.79
0.1.80
0.2.0
0.2.1
0.2.10
0.2.11
0.2.2
0.2.3
0.2.4
0.2.5
0.2.6
0.2.7
0.2.8
0.2.9

1.*

1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.1.8
1.1.9
1.2.0
1.2.1
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.3.8
1.3.9
1.4.0
1.4.1
1.4.2
1.4.3
1.4.4
1.4.5
1.4.6
1.5.0
1.5.1
1.5.2
1.5.3
1.5.4

regex-1.*

regex-1.3.7

regex-capi-0.*

regex-capi-0.2.0
regex-capi-0.2.1

regex-syntax-0.*

regex-syntax-0.3.6
regex-syntax-0.3.7
regex-syntax-0.3.8
regex-syntax-0.3.9
regex-syntax-0.4.0
regex-syntax-0.4.2
regex-syntax-0.5.0
regex-syntax-0.5.1
regex-syntax-0.5.2
regex-syntax-0.5.3
regex-syntax-0.5.5
regex-syntax-0.5.6
regex-syntax-0.6.0
regex-syntax-0.6.1
regex-syntax-0.6.10
regex-syntax-0.6.11
regex-syntax-0.6.12
regex-syntax-0.6.13
regex-syntax-0.6.14
regex-syntax-0.6.15
regex-syntax-0.6.16
regex-syntax-0.6.17
regex-syntax-0.6.19
regex-syntax-0.6.2
regex-syntax-0.6.20
regex-syntax-0.6.25
regex-syntax-0.6.3
regex-syntax-0.6.4
regex-syntax-0.6.5
regex-syntax-0.6.6
regex-syntax-0.6.7
regex-syntax-0.6.8
regex-syntax-0.6.9

regex_macros-0.*

regex_macros-0.2.0