CVEfocus › CVE database › CVE-2024-45296

CVE-2024-45296path-to-regexp outputs backtracking regular expressions

CVSS 7.5 HighEPSS 0.9% (higher than 61% of CVEs)Published 2024-09-09Updated 2025-01-24Assigner: GitHub_M

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. Because JavaScript is single threaded and regex matching runs on the main thread, poor performance will block the event loop and lead to a DoS. The bad regular expression is generated any time you have two parameters within a single segment, separated by something that is not a period (.). For users of 0.1, upgrade to 0.1.10. All other users should upgrade to 8.0.0.

CWE-1333

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
7Fix pending
1Under investigation
4Will not fix
14Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-expressFix pendingUBUNTU-CVE-2024-45296
Ubuntu 26.04node-expressUnder investigationUBUNTU-CVE-2024-45296
Ubuntu 26.04node-path-to-regexpNot affected
vulnerable_code_not_present
Ubuntu 25.10node-expressWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-45296
Ubuntu 25.10node-path-to-regexpNot affected
vulnerable_code_not_present
Ubuntu 24.04node-path-to-regexpFix pending6.2.1-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-45296
Ubuntu 22.04node-path-to-regexpFix pending6.2.0-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-45296
Ubuntu 20.04node-path-to-regexpFix pending6.1.0-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-45296
Ubuntu 18.04node-path-to-regexpFix pending1.0.1-1ubuntu0.18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-45296
Ubuntu 16.04node-path-to-regexpFix pending1.0.1-1ubuntu0.16.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-45296
Debian 14node-path-to-regexpFixed6.3.0-1DEBIAN-CVE-2024-45296
Debian 13node-path-to-regexpFixed6.3.0-1DEBIAN-CVE-2024-45296
Debian 12node-path-to-regexpFix pendingDEBIAN-CVE-2024-45296
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9pcsNot affected
Red Hat Enterprise Linux 9pcs-snmpNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 8pcsNot affected
Red Hat Enterprise Linux 8pcs-snmpNot affected
Red Hat Enterprise Linux 7thunderbirdWill not fix
Out of support scope
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6thunderbirdWill not fix
Out of support scope
npm librarypath-to-regexpFixed0.1.10GHSA-9wv6-86v2-598j

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.