Inefficient Regular Expression Complexity Affecting sqlpad package, versions <7.5.0-r1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-SQLPAD-8172758
  • published10 Oct 2024
  • disclosed9 Sept 2024

Introduced: 9 Sep 2024

CVE-2024-45296  (opens in a new tab)
CWE-1333  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade Chainguard sqlpad to version 7.5.0-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream sqlpad package and not the sqlpad package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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.

CVSS Scores

version 3.1