patchminder
Proof of concept · GitHub CVE-2022-24713

Denial of servicein the regex package.

Published 8 Mar 2022 · Updated 23 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 7.5
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
High
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 14.5% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 1.5.5 or later
In plain words

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.

What to do now
  • Upgrade regex to 1.5.5 or later.
  • Upgrade regex (crates.io) to 1.5.5 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
regex
before 1.5.5
1.5.5
CVE record
regex (crates.io)
before 1.5.5
1.5.5
GitHub advisory
regex (crates.io)
0.0.0-0 to before 1.5.5
1.5.5
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 10 Feb 2022
    CVE ID reserved by GitHub_M.
  2. 8 Mar 2022
    Published in the CVE List.
  3. 5 Jun 2022
    First public proof of concept on GitHub.
  4. 23 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
2 repositories
GitHubno warning signs foundjpeisach/CVE-2022-24713-POC0 stars · created 5 Jun 2022Proof of Concept/Test for CVE-2022-24713 on Ubuntu
GitHubno warning signs foundfedericonbaez/cortex9-rust-regex-empty-repetition-size-limit-model0 stars · created 6 Nov 2026Offline model of the regex 1.5.4 compile-size accounting for empty repetitions (CVE-2022-24713), checked against regex-syntax HIR and real compile results. Bounded cases are labelled MODEL_LIMIT.

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.

Related

Same weakness: Uncontrolled resource consumption

All CWE-400 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-24713: Denial of service in the regex package. https://patchminder.com/cve/cve-2022-24713/ (accessed 5 December 2026).