Uncontrolled Recursion Affecting py3-sqlparse package, versions <0.5.0-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
3.24% (89th 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 IDSNYK-WOLFILATEST-PY3SQLPARSE-7216469
  • published6 Jun 2024
  • disclosed30 Apr 2024

Introduced: 30 Apr 2024

CVE-2024-4340  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade Wolfi py3-sqlparse to version 0.5.0-r0 or higher.

NVD Description

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

Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.

CVSS Base Scores

version 3.1