7.7
CWE
1333
Advisory Published
CVE Published
Updated

CVE-2024-52798: path-to-regexp Unpatched `path-to-regexp` ReDoS in 0.1.x

First published: Thu Dec 05 2024(Updated: )

### Impact The regular expression that is vulnerable to backtracking can be generated in the 0.1.x release 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/

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
npm/path-to-regexp<0.1.12
0.1.12
IBM Cognos Controller<=11.1.0
IBM Cognos Controller<=11.0.0 - 11.0.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2024-52798?

    CVE-2024-52798 has a moderate severity due to the potential for Denial of Service from backtracking in regular expressions.

  • How do I fix CVE-2024-52798?

    To fix CVE-2024-52798, upgrade the 'path-to-regexp' package to version 0.1.12 or later.

  • What software is affected by CVE-2024-52798?

    CVE-2024-52798 affects versions before 0.1.12 of the 'path-to-regexp' package.

  • What is the cause of CVE-2024-52798?

    CVE-2024-52798 is caused by a vulnerable regular expression that allows for excessive backtracking.

  • Are there workarounds for CVE-2024-52798?

    As a workaround for CVE-2024-52798, avoid using two parameters within a single path segment.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203