# CVE-2024-52798: path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.79%, higher than 57% of CVEs (2026-12-01)
- Published: 2024-12-05T22:40:47.000Z
- Modified: 2026-09-10T03:50:56.223Z
- Also known as: GHSA-rhx6-c78j-4q9w
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- pillarjs path-to-regexp: < 0.1.12; before 0.1.12
- path-to-regexp (npm): before 0.1.12

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-rhx6-c78j-4q9w> (web)
- <https://github.com/pillarjs/path-to-regexp/commit/f01c26a013b1889f0c217c643964513acf17f6a4> (web)
- <https://security.netapp.com/advisory/ntap-20250124-0002/>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52798> (advisory)
- <https://blakeembrey.com/posts/2024-09-web-redos> (web)
- <https://github.com/pillarjs/path-to-regexp> (package)
- <https://security.netapp.com/advisory/ntap-20250124-0002> (web)

## Sources

- CVE List: [CVE-2024-52798](https://www.cve.org/CVERecord?id=CVE-2024-52798), CVE Terms of Use, modified 2025-01-24
- GitHub Advisory Database: [GHSA-rhx6-c78j-4q9w](https://github.com/advisories/GHSA-rhx6-c78j-4q9w), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-52798](https://nvd.nist.gov/vuln/detail/CVE-2024-52798), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-52798 · Whole record: https://cve.day/CVE-2024-52798.json · Rebuilt by cve.day 2026-11-25T22:58:49.755Z
