Service interruption via backtracking route regular expressions
Published Sep 9, 2024 · Updated Jan 24, 2025
Regular expression denial of service in PillarJS path-to-regexp allows remote attackers to block the event loop via crafted paths. For route patterns with two parameters in one segment separated by a character other than a period, the library emits overlapping lazy capture groups that backtrack excessively on a long nonmatching path. Exposure requires a consuming application to use such a route pattern and pass attacker-controlled path input; successful requests consume the single JavaScript thread and interrupt service without reported data access or modification.
Summary
What happened
Regular expression denial of service in PillarJS path-to-regexp allows remote attackers to block the event loop via crafted paths. For route patterns with two parameters in one segment separated by a character other than a period, the library emits overlapping lazy capture groups that backtrack excessively on a long nonmatching path. Exposure requires a consuming application to use such a route pattern and pass attacker-controlled path input; successful requests consume the single JavaScript thread and interrupt service without reported data access or modification.
The record
- CVE
- CVE-2024-45296
- Published
- Sep 9, 2024
- Updated
- Jan 24, 2025
- Vendor
- PillarJS
- Product
- path-to-regexp
- Classifications
- CWE-1333, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 9, 2024CVE publishedPublication date reported by the CVE source.
- Jan 24, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <0.1.0
- Affected versionversion=< 0.1.10
- Affected versionversion=>= 0.2.0, < 8.0.0
- Affected versionversion=0.2.0 <8.0.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream crafted-path ReDoS demonstrationproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo