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 swayrUpgrade firefox-esrUpgrade librewolfUpgrade batUpgrade deltaUpgrade firefoxUpgrade thunderbird | Aug 22, 2024 | Mar 8, 2022 |
| Amazon Linux Ami 2 | — | Upgrade thunderbird-debuginfoUpgrade amazon-efs-utilsUpgrade thunderbird | 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 thunderbirdUpgrade firefoxUpgrade firefox-debugsourceUpgrade firefox-debuginfoUpgrade thunderbird-debugsourceUpgrade thunderbird-debuginfo | Apr 11, 2022 | Mar 8, 2022 |
| Debian | — | Upgrade rust-regexUpgrade thunderbirdUpgrade firefox-esr | Apr 8, 2022 | Mar 8, 2022 |
| Gentoo Linux | — | Upgrade www-client/firefox.Upgrade mail-client/thunderbird-bin.Upgrade mail-client/thunderbird.Upgrade www-client/firefox-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 thunderbird-debugsourceUpgrade thunderbirdUpgrade firefox-debugsourceUpgrade firefoxUpgrade thunderbird-debuginfoNo solution existsUpgrade firefox-debuginfo | Apr 11, 2022 | Mar 8, 2022 |
| Rocky_linux | — | Upgrade firefox-debuginfoUpgrade thunderbird-debuginfoUpgrade firefox-debugsourceUpgrade thunderbird-debugsourceUpgrade firefoxUpgrade thunderbird | Mar 5, 2024 | Mar 8, 2022 |
| Suse | — | Upgrade system-group-neUpgrade mozillafirefox-translations-otherUpgrade mozillafirefox-develUpgrade mozillathunderbird-translations-commonUpgrade mozillathunderbirdUpgrade mozillathunderbird-translations-otherUpgrade rustupUpgrade rage-encryptionUpgrade mozillafirefox-translations-commonUpgrade mozillafirefox-branding-upstreamUpgrade sccacheUpgrade aws-nitro-enclaves-binaryblobs-upstreamUpgrade aws-nitro-enclaves-cliUpgrade rage-encryption-bash-completionUpgrade mozillafirefox | 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