CVE-2024-4340
HIGH7.5EPSS 10.9%sqlparse parsing heavily nested list leads to Denial of Service
Published: 4/15/2024Modified: 4/28/2026
Description
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
Affected packages (2)
- Debian/sqlparsefrom 0, < 0.4.1-1+deb11u1
- PyPI/sqlparsefrom 0, < 0.5.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References (6)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-4340
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-4340
- PATCHhttps://github.com/andialbrecht/sqlparse
- WEBhttps://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03
- WEBhttps://github.com/andialbrecht/sqlparse/security/advisories/GHSA-2m57-hf25-phgg
- WEBhttps://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292