path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x
path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. The regular expression that is vulnerable to backtracking can be generated in the 0.1.x release of path-to-regexp. Upgrade to 0.1.12. This vulnerability exists because of an incomplete fix for CVE-2024-45296.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-52798
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 16:30 UTC · Revision 1
Source evidence
path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x
core-osv · Original sourcePublished 5 Dec 2024, 22:45 UTC
path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. The regular expression that is vulnerable to backtracking can be generated in the 0.1.x release of path-to-regexp. Upgrade to 0.1.12. This vulnerability exists because of an incomplete fix for CVE-2024-45296.
osv:CVE-2024-52798
Complete source record
{
"id": "8e145f0e0ec478d8b9c4620c85b71c97b05d484991c8973a3f5ca7ab86ac33e4",
"url": "https://osv.dev/vulnerability/CVE-2024-52798",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x",
"summary": "path-to-regexp turns path strings into a regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. The regular expression that is vulnerable to backtracking can be generated in the 0.1.x release of path-to-regexp. Upgrade to 0.1.12. This vulnerability exists because of an incomplete fix for CVE-2024-45296.",
"evidence": "osv:CVE-2024-52798",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-52798",
"aliases": [
"CVE-2024-52798",
"GHSA-rhx6-c78j-4q9w"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/pillarjs/path-to-regexp",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "640e694c6fd971f78268439df9cf44040855e669"
},
{
"fixed": "f01c26a013b1889f0c217c643964513acf17f6a4"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.1.12"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "f01c26a013b1889f0c217c643964513acf17f6a4"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v0.1.11",
"v0.1.10",
"v0.1.9",
"v0.1.8",
"v0.1.7",
"v0.1.6",
"v0.1.5",
"v0.1.4",
"v0.1.3",
"v0.1.2",
"v0.1.1",
"0.1.0",
"0.0.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52798.json"
}
}
],
"modified": "2026-10-28T02:30:20.922249983Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52798.json",
"https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-rhx6-c78j-4q9w",
"https://nvd.nist.gov/vuln/detail/CVE-2024-52798",
"https://security.netapp.com/advisory/ntap-20250124-0002/",
"https://github.com/pillarjs/path-to-regexp/commit/f01c26a013b1889f0c217c643964513acf17f6a4"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1333"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52798.json"
}
},
"related_cves": [
{
"value": "CVE-2024-52798",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 487141,
"published_at": "2024-12-05T22:45:42.774+00:00"
}