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.
CVSS Details
- CVSS 3.1 Base Score: 7.5
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | — | Upgrade firefoxUpgrade thunderbird | May 4, 2022 | Mar 8, 2022 |
| Alpine Linux | — | Upgrade firefoxUpgrade batUpgrade thunderbirdUpgrade deltaUpgrade firefox-esrUpgrade swayrUpgrade librewolf | Aug 22, 2024 | Mar 8, 2022 |
| Amazon Linux Ami 2 | — | Upgrade thunderbirdUpgrade amazon-efs-utilsUpgrade thunderbird-debuginfo | Jul 4, 2022 | Mar 8, 2022 |
| Amazon_linux_2023 | — | Upgrade amazon-efs-utils | Nov 11, 2025 | Apr 5, 2022 |
| Arch Linux | — | Upgrade to the latest version of Arch Linux | Jul 11, 2025 | Mar 8, 2022 |
| Centos_linux | — | Upgrade firefox-debuginfoUpgrade thunderbird-debugsourceUpgrade thunderbird-debuginfoUpgrade firefox-debugsourceUpgrade firefoxUpgrade thunderbird | Apr 11, 2022 | Mar 8, 2022 |
| Debian | — | Upgrade thunderbirdUpgrade firefox-esrUpgrade rust-regex | Apr 8, 2022 | Mar 8, 2022 |
| Gentoo Linux | — | Upgrade mail-client/thunderbird.Upgrade www-client/firefox-bin.Upgrade www-client/firefox.Upgrade mail-client/thunderbird-bin. | Aug 11, 2022 | Mar 8, 2022 |
| Mfsa2022 13 | — | Upgrade to Mozilla Firefox version 99.0 | Apr 6, 2022 | Mar 8, 2022 |
| Mfsa2022 14 | — | Upgrade to Mozilla Firefox ESR version 91.8 | Apr 6, 2022 | Mar 8, 2022 |
| Mozilla Thunderbird | — | Upgrade to Mozilla Thunderbird version 91.8 | Apr 7, 2022 | Mar 8, 2022 |
| Oracle_linux | — | Upgrade thunderbirdUpgrade firefox | Apr 9, 2022 | Apr 5, 2022 |
| Redhat_linux | — | Upgrade thunderbirdUpgrade thunderbird-debugsourceUpgrade firefox-debuginfoUpgrade firefoxNo solution existsUpgrade thunderbird-debuginfoUpgrade firefox-debugsource | Apr 11, 2022 | Mar 8, 2022 |
| Rocky_linux | — | Upgrade thunderbird-debuginfoUpgrade firefox-debuginfoUpgrade firefox-debugsourceUpgrade thunderbirdUpgrade thunderbird-debugsourceUpgrade firefox | Mar 5, 2024 | Mar 8, 2022 |
| Suse | — | Upgrade rustupUpgrade mozillafirefox-branding-upstreamUpgrade mozillafirefoxUpgrade mozillafirefox-translations-commonUpgrade sccacheUpgrade aws-nitro-enclaves-binaryblobs-upstreamUpgrade aws-nitro-enclaves-cliUpgrade rage-encryptionUpgrade rage-encryption-bash-completionUpgrade mozillathunderbird-translations-commonUpgrade mozillafirefox-develUpgrade mozillafirefox-translations-otherUpgrade system-group-neUpgrade mozillathunderbirdUpgrade mozillathunderbird-translations-other | Oct 26, 2022 | Mar 8, 2022 |
| Ubuntu | — | Upgrade librust-regex-devUpgrade firefox | Apr 8, 2022 | Mar 8, 2022 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub