CVE-2024-4340
unknown
CVSS v3
โ
CVSS v4 NEW
โ
VIR risk
โ
Description
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
Predictions
Exploit likelihood
30%
Patch ETA
โ
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | bookworm | fixed | 0.4.2-1+deb12u1 |
| debian | bullseye | fixed | 0.4.1-1+deb11u1 |
| debian | forky | fixed | 0.5.0-1 |
| debian | sid | fixed | 0.5.0-1 |
| debian | trixie | fixed | 0.5.0-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| PyPI | sqlparse | <0.5.0 | 0.5.0 |
References
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-2m57-hf25-phgg
- https://nvd.nist.gov/vuln/detail/CVE-2024-4340
- https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03
- https://github.com/andialbrecht/sqlparse
- https://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292
- https://www.suse.com/security/cve/CVE-2024-4340.html
- https://security-tracker.debian.org/tracker/CVE-2024-4340
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.