CVE-2024-4340
HIGH 7.5CVSS 3.1sqlparse parsing heavily nested list leads to Denial of Service
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
- Published
- 30 Apr 2024
- Last modified
- 10 Sep 2026
- Assigned by
- reefs@jfrog.com
- NVD status
- Deferred
- Weakness
- CWE-674
- Also known as
- GHSA-2m57-hf25-phggPYSEC-2026-1940
- Sources
- NVDJSONOSV GHSA-2m57-hf25-phggJSONOSV PYSEC-2026-1940JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | reefs@jfrog.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | sqlparse | < 0.5.0 | 0.5.0 |
References
- https://github.com/advisories/GHSA-2m57-hf25-phgg · ADVISORY
- https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03 · WEB
- https://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/ · WEB
- https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-2m57-hf25-phgg · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-4340 · ADVISORY
- https://github.com/andialbrecht/sqlparse · PACKAGE
- https://pypi.org/project/sqlparse · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 30 Apr 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Apr 2024)