Denial of servicein the regex package.
Proof of concept public (GitHub).
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.
- Upgrade regex to 1.5.5 or later.
- Upgrade regex (crates.io) to 1.5.5 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 10 Feb 2022CVE ID reserved by GitHub_M.
- 8 Mar 2022Published in the CVE List.
- 5 Jun 2022First public proof of concept on GitHub.
- 23 Apr 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Same weakness: Uncontrolled resource consumption
- github.com x_refsource_CONFIRM
- github.com x_refsource_MISC
- groups.google.com x_refsource_MISC
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.fedoraproject.org vendor-advisory, x_refsource_FEDORA
- lists.debian.org mailing-list, x_refsource_MLIST
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- lists.debian.org mailing-list, x_refsource_MLIST
- www.debian.org vendor-advisory, x_refsource_DEBIAN
- security.gentoo.org vendor-advisory, x_refsource_GENTOO
- security.gentoo.org vendor-advisory, x_refsource_GENTOO
Patchminder. CVE-2022-24713: Denial of service in the regex package. https://patchminder.com/cve/cve-2022-24713/ (accessed 5 December 2026).