CVE-2024-4340sqlparse_project sqlparse
High 7.5 No auth needed
Follow: this CVE · sqlparse_project · sqlparse_project sqlparse We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 4.2% probability of exploitation in 30 days · percentile 92
- Auth required
- No
- Published
- Apr 30, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-674
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
What to do
- Apply the vendor's security update for sqlparse.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | sqlparse |
< 0.5.0 |
0.5.0 |
pip install "sqlparse>=0.5.0" |
| PyPI | sqlparse |
< 0.5.0 |
0.5.0 |
pip install "sqlparse>=0.5.0" |
Per OSV / GitHub Advisories (GHSA-2m57-hf25-phgg, PYSEC-2026-1940). Check the version in your lockfile before upgrading.
Affected products
- sqlparse_project · sqlparse
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.