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 thunderbirdUpgrade firefox | May 4, 2022 | Mar 8, 2022 |
| Alpine Linux | — | Upgrade thunderbirdUpgrade deltaUpgrade batUpgrade firefoxUpgrade 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 firefoxUpgrade thunderbirdUpgrade firefox-debugsourceUpgrade thunderbird-debugsourceUpgrade firefox-debuginfoUpgrade thunderbird-debuginfo | 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.0Upgrade to the latest version of Mozilla Firefox | Apr 6, 2022 | Mar 8, 2022 |
| Mfsa2022 14 | — | Upgrade to the latest version of Mozilla FirefoxUpgrade to Mozilla Firefox ESR version 91.8 | Apr 6, 2022 | Mar 8, 2022 |
| Mozilla Thunderbird | — | Upgrade to Mozilla Thunderbird version 91.8Upgrade to the latest version of Mozilla Thunderbird | Apr 7, 2022 | Mar 8, 2022 |
| Oracle_linux | — | Upgrade firefoxUpgrade thunderbird | Apr 9, 2022 | Apr 5, 2022 |
| Redhat_linux | — | Upgrade thunderbirdUpgrade thunderbird-debugsourceUpgrade thunderbird-debuginfoUpgrade firefoxUpgrade firefox-debuginfoUpgrade firefox-debugsourceNo solution exists | Apr 11, 2022 | Mar 8, 2022 |
| Rocky_linux | — | Upgrade thunderbird-debugsourceUpgrade firefox-debugsourceUpgrade firefoxUpgrade thunderbirdUpgrade thunderbird-debuginfoUpgrade firefox-debuginfo | Mar 5, 2024 | Mar 8, 2022 |
| Suse | — | Upgrade MozillaFirefoxUpgrade MozillaThunderbird-translations-commonUpgrade MozillaFirefox-translations-otherUpgrade MozillaThunderbird-translations-otherUpgrade MozillaFirefox-translations-commonUpgrade system-group-neUpgrade MozillaThunderbirdUpgrade rage-encryption-bash-completionUpgrade rustupUpgrade aws-nitro-enclaves-binaryblobs-upstreamUpgrade MozillaFirefox-develUpgrade aws-nitro-enclaves-cliUpgrade rage-encryptionUpgrade mozillafirefox-branding-upstreamUpgrade sccache | 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