CVE-2022-24713
Regular expression denial of service in Rust's regex crate
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 14.460% · score date 2026-11-18. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T15:55:09.885Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 7.5 · published by GitHub_MCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Assessment source · checked 2026-11-19T12:56:24.768Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T15:55:09.885Z | CISA KEV |
| cvss | verified | 2026-11-19T12:56:24.768Z | CVE Program |
| epss | verified | 2026-11-19T13:00:05.565Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:41.976Z | OSV |
| affected | verified | 2026-11-19T12:56:24.768Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:56:24.768Z | CVE Program |
Affected versions and configuration
rust-lang regex; default status: unknown: < 1.5.5 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "rust-lang",
"product": "regex",
"versions": [
{
"status": "affected",
"version": "< 1.5.5"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283e",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ/",
"name": "FEDORA-2022-ceb3e03c5e",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T/",
"name": "FEDORA-2022-8436ac4c39",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H/",
"name": "FEDORA-2022-d20d44ba98",
"tags": [
"vendor-advisory",
"x_refsource_FEDORA",
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2022/04/msg00003.html",
"name": "[debian-lts-announce] 20220407 [SECURITY] [DLA 2971-1] firefox-esr security update",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
]
},
{
"url": "https://www.debian.org/security/2022/dsa-5113",
"name": "DSA-5113",
"tags": [
"vendor-advisory",
"x_refsource_DEBIAN",
"x_transferred"
]
},
{
"url": "https://lists.debian.org/debian-lts-announce/2022/04/msg00009.html",
"name": "[debian-lts-announce] 20220411 [SECURITY] [DLA 2978-1] thunderbird security update",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
]
},
{
"url": "https://www.debian.org/security/2022/dsa-5118",
"name": "DSA-5118",
"tags": [
"vendor-advisory",
"x_refsource_DEBIAN",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202208-08",
"name": "GLSA-202208-08",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
},
{
"url": "https://security.gentoo.org/glsa/202208-14",
"name": "GLSA-202208-14",
"tags": [
"vendor-advisory",
"x_refsource_GENTOO",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-03T04:20:50.199Z"
}
},
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2022-24713",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "yes"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2025-04-23T15:56:58.280846Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2025-04-23T18:58:21.068Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-m5pq-gvj9-9vr8",
"aliases": [
"CVE-2022-24713",
"RUSTSEC-2022-0013"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.5.5"
}
]
}
],
"package": {
"name": "regex",
"purl": "pkg:cargo/regex",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/03/GHSA-m5pq-gvj9-9vr8/GHSA-m5pq-gvj9-9vr8.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/rust-lang/regex/security/advisories/GHSA-m5pq-gvj9-9vr8",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-24713",
"type": "ADVISORY"
},
{
"url": "https://github.com/rust-lang/regex/commit/ae70b41d4f46641dbc45c7a4f87954aea356283e",
"type": "WEB"
},
{
"url": "https://github.com/rust-lang/regex",
"type": "WEB"
},
{
"url": "https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2022/04/msg00003.html",
"type": "WEB"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2022/04/msg00009.html",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/JANLZ3JXWJR7FSHE57K66UIZUIJZI67T",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/O3YB7CURSG64CIPCDPNMGPE4UU24AB6H",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected]/message/PDOWTHNVGBOP2HN27PUFIGRYNSNDTYRJ",
"type": "WEB"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2022-0013.html",
"type": "WEB"
},
{
"url": "https://security.gentoo.org/glsa/202208-08",
"type": "WEB"
},
{
"url": "https://security.gentoo.org/glsa/202208-14",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2022/dsa-5113",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2022/dsa-5118",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-1333",
"CWE-400"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2022-03-08T19:15:00Z",
"github_reviewed_at": "2022-03-08T20:00:36Z"
}
}Archived source JSONOSV · osv · full conditions
{
"id": "RUSTSEC-2022-0013",
"aliases": [
"CVE-2022-24713",
"GHSA-m5pq-gvj9-9vr8"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "1.5.5"
}
]
}
],
"package": {
"name": "regex",
"purl": "pkg:cargo/regex",
"ecosystem": "crates.io"
},
"versions": [],
"database_specific": {
"cvss": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
"source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0013.json",
"categories": [
"denial-of-service"
],
"informational": null
},
"ecosystem_specific": {
"affects": {
"os": [],
"arch": [],
"functions": []
},
"affected_functions": null
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://crates.io/crates/regex",
"type": "PACKAGE"
},
{
"url": "https://rustsec.org/advisories/RUSTSEC-2022-0013.html",
"type": "ADVISORY"
},
{
"url": "https://groups.google.com/g/rustlang-security-announcements/c/NcNNL1Jq7Yw",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"license": "CC0-1.0"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | crates.io / package | regex | Not a distribution channel | 1.5.5 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:41.976ZArchived source JSON
Source publication: 2022-03-08T20:00:36.000Z
Source modification: 2023-11-08T04:08:33.272ZDocument fingerprint
e77021728a991ad93112a400fa8feb8ea51f2c5135bb17b9ef5c2bf809cd2883 - OSVConsulted: 2026-11-19T12:52:41.976ZArchived source JSON
Source publication: 2022-03-08T12:00:00.000Z
Source modification: 2023-11-08T04:08:33.272ZDocument fingerprint
e77021728a991ad93112a400fa8feb8ea51f2c5135bb17b9ef5c2bf809cd2883 - CVE ProgramConsulted: 2026-11-19T12:56:24.768ZArchived source JSON
Source publication: 2022-03-08T19:00:12.000Z
Source modification: 2025-04-23T18:58:21.068ZDocument fingerprint
fffc8b8726a4159d4d7d4b868e18c9a3f8b0b3dd1c976e3942adf5d50e140dd3 - CISA KEVConsulted: 2026-11-19T15:55:09.885ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T13:00:05.565ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
6297cb1fad1748c11d32560dfcb0a00f0044dee9d386dfd7618f9e2284806ad3
Official status history
- UNKNOWN → PUBLISHED · · evidence