CVE-2024-4340: Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError
Affects sqlparseSource GCVE Database
Not known to be exploited · CVSS 7.5 High · fixed in 0.4.2-1ubuntu0.22.04.2 : patch sqlparse soon.
Data as of 24 Nov 2026, 21:14 UTC
Thin evidence
One scorer or none| CNA (JFROG) | CVSS 3.1 | 7.5 |
|---|
- EPSS
- 3.2% chance of exploitation in 30 days – higher than 88% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.4.2-1ubuntu0.22.04.2, 0.4.4-1ubuntu0.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 30 Apr 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Upgrade the Ubuntu sqlparse to 0.4.2-1ubuntu0.22.04.2 (package) or 0.4.4-1ubuntu0.1 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSsqlparsepkg:deb/ubuntu/sqlparse?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSsqlparsepkg:deb/ubuntu/sqlparse?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
References
- ubuntu.com/security/CVE-2024-4340 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-4340 (opens in a new tab)
- research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/ (opens in a new tab)
- github.com/advisories/GHSA-2m57-hf25-phgg (opens in a new tab)
- ubuntu.com/security/notices/USN-6771-1 (opens in a new tab)