CVE-2024-4340: Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
Vulnerability summary
CVE-2024-4340 is a high (CVSS 7.5) Uncontrolled Recursion vulnerability in sqlparse. EPSS estimates a 3.24% chance of exploitation in the next 30 days, higher than 88.3% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 3Timeline
- 30-04-2024PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
Description
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
CVSS metrics
8 scores · 8 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · Red hatEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
3.24%
Chance of exploitation in the next 30 days
Percentile
88%
Versus all other CVEs
30-day change
No change 0.00 pp
From 3.24% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse14 products
- python-sqlparse&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP4< 0.4.4-150400.6.7.1
- python-sqlparse&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP5< 0.4.4-150400.6.7.1
- python3-sqlparse&distro=SUSE Enterprise Storage 7.1< 0.4.2-150300.12.1
- python3-sqlparse&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 0.4.2-150300.12.1
- python3-sqlparse&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 0.4.2-150300.12.1
Chainguard2 products
- kubeflow-pipelines-visualization-server< 2.2.0-r0
- py3-sqlparse< 0.5.0-r0
Opensuse2 products
- python-sqlparse&distro=openSUSE Leap 15.5< 0.4.4-150400.6.7.1
- python3-sqlparse&distro=openSUSE Leap 15.5< 0.4.2-150300.12.1
Redhat2 products
- python-sqlparse< 0:0.4.1-2.el9ost | < 0:0.4.1-2.el8ost
- python3-sqlparse< 0:0.4.1-2.el9ost | < 0:0.4.1-2.el8ost
Wolfi2 products
- kubeflow-pipelines-visualization-server< 2.2.0-r0
- py3-sqlparse< 0.5.0-r0
Debian1 product
- sqlparse< 0.4.2-1+deb12u1 | < 0.5.0-1
Mageia1 product
- python-sqlparse< 0.4.4-1.1.mga9
PyPI1 product
- sqlparse< 0.5.0
Ubuntu1 product
- sqlparse< 0.4.2-1ubuntu0.22.04.2 | < 0.4.4-1ubuntu0.1
9 vendors · 26 products
References
28 links- research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/Third Party AdvisoryREPORTAdvisory
Show all 28 references
- pypi.org/project/sqlparsePACKAGE
- pypi.org/project/pipPACKAGE