New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

GHSA-rhx6-c78j-4q9w

GHSA: GHSA-rhx6-c78j-4q9w

CVE: CVE-2024-52798

Patch Available (8)

Summary

HIGH

path-to-regexp contains a ReDoS

Details

Impact

The regular expression that is vulnerable to backtracking can be generated in versions before 0.1.12 of path-to-regexp, originally reported in CVE-2024-45296

Patches

Upgrade to 0.1.12.

Workarounds

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

References

  • https://github.com/advisories/GHSA-9wv6-86v2-598j
  • https://blakeembrey.com/posts/2024-09-web-redos/

Metadata

Published:

12/5/2024

Modified:

6/3/2025

CVSS Vector:

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 - Exploit Prediction Scoring System

Probability that this vulnerability will be exploited in the wild in the next 30 days

Current Exploitation Probability

0.09%

25.8th percentile

Low Risk

As of 10/5/2025

EPSS scores are updated daily and represent the probability (0-100%) that a CVE will be exploited in the next 30 days. Higher scores indicate higher risk.

CWEs (Common Weakness Enumeration)

CWE-1333

Inefficient Regular Expression Complexity

Abstraction Level:

Base

Description:

The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

Likelihood of Exploit:

High

Related Weaknesses:

CWE-407CWE-407

Affected Packages (0)