cve.bz

CVE-2024-52798 pillarjs path-to-regexp

7.7 highEPSS 0.8%Fix available

High (7.7) in pillarjs path-to-regexp. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in path-to-regexp 0.1.12.

On this page
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.

Severity

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
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 57th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-12-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-52798 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-52798?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-52798?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-52798 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
pillarjs path-to-regexp< 0.1.12

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rhx6-c78j-4q9wnpmpath-to-regexp<0.1.120.1.12

Linux distributions

DistributionReleasePackageFixed inAdvisory
Azure Linux2nodejs-nodemonno fix listedAZL-54017
Azure Linux2reaper3.1.1-16AZL-54020
Azure Linux3nodejs-nodemonno fix listedAZL-54036

From the distributions' data via OSV.dev: Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability exists because of an incomplete fix for CVE-2024-45296.

Red Hat's mitigation

Avoid using two parameters within a single path segment when the separator is not, for example, /:a-:b. Alternatively, you can define the regex used for both parameters and ensure they do not overlap to allow backtracking.

ProductPackageStateAdvisory
Discovery 1 for RHEL 9discovery/discovery-server-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Discovery 1 for RHEL 9discovery/discovery-ui-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
HawtIO HawtIO 4.2.0io.hawt-projectFixed 2025-06-10RHSA-2025:8761
Red Hat Developer Hub 1.3 on RHEL 9rhdh-hub-container-1.3-138Fixed 2025-01-22RHBA-2025:0610
Red Hat OpenShift Container Platform 4.17openshift4/nmstate-console-plugin-rhel9:v4.17.0-202501301204.p0.gcffdc60.assembly.stream.el9Fixed 2025-02-05RHSA-2025:0875
Red Hat OpenShift Container Platform 4.17openshift4/ose-networking-console-plugin-rhel9:v4.17.0-202501241234.p0.g2c4e34f.assembly.stream.el9Fixed 2025-02-05RHSA-2025:0876
Red Hat OpenShift Container Platform 4.18openshift4/ingress-node-firewall-rhel9:v4.18.0-202501230001.p0.g1e43b4c.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Red Hat OpenShift Container Platform 4.18openshift4/ingress-node-firewall-rhel9-operator:v4.18.0-202501230001.p0.g1e43b4c.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Red Hat OpenShift Container Platform 4.18openshift4/kube-compare-artifacts-rhel9:v4.18.0-202502040032.p0.g2b576a0.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Red Hat OpenShift Container Platform 4.18openshift4/kubernetes-nmstate-rhel9-operator:v4.18.0-202502110432.p0.g924aca8.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel8Will not fix
Migration Toolkit for Applications 7mta/mta-cli-rhel9Fix deferred
Migration Toolkit for Applications 7mta/mta-ui-rhel9Fix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Fix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Not affected
Multicluster Engine for Kubernetesmulticluster-engine/multicluster-engine-console-mce-rhel9Not affected
Node HealthCheck Operatorworkload-availability/node-remediation-console-rhel8Will not fix
OpenShift Lightspeedopenshift-lightspeed-tech-preview/lightspeed-console-plugin-rhel9Affected
334 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-52798.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON