Uncontrolled Recursion Affecting sqlparse package, versions <0.4.2-1+deb12u1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
3.24% (88th 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-ECHOLATEST-SQLPARSE-18912756
  • published18 Aug 2026
  • 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 Echo:latest sqlparse to version 0.4.2-1+deb12u1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream sqlparse package and not the sqlparse package as distributed by Echo. See How to fix? for Echo:latest 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