Red Hat VEX
RHVEX-CVE-2024-45296
path-to-regexp: Backtracking regular expressions cause ReDoS
Details
A flaw was found in path-to-regexp package, where it turns path strings into regular expressions. In certain cases, path-to-regexp will output a regular expression that can be exploited to cause poor performance. Because JavaScript is single-threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a denial of service (DoS).
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:6 | firefox | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:6 | thunderbird | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | thunderbird | All versions, no fix (out of support scope) |
References
- https://access.redhat.com/security/cve/CVE-2024-45296
- https://bugzilla.redhat.com/show_bug.cgi?id=2310908
- https://www.cve.org/CVERecord?id=CVE-2024-45296
- https://nvd.nist.gov/vuln/detail/CVE-2024-45296
- https://github.com/pillarjs/path-to-regexp/commit/29b96b4a1de52824e1ca0f49a701183cc4ed476f
- https://github.com/pillarjs/path-to-regexp/commit/60f2121e9b66b7b622cc01080df0aabda9eedee6
- https://github.com/pillarjs/path-to-regexp/security/advisories/GHSA-9wv6-86v2-598j