CVE-2024-4340
Passing a heavily nested list to sqlparse.parse() leads to a Denial …
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/advisories/GHSA-2m57-hf25-phgg
- github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03
- research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/
- lists.debian.org/debian-lts-announce/2024/12/msg00022.html
- github.com/andialbrecht/sqlparse/security/advisories/GHSA-2m57-hf25-phgg
- nvd.nist.gov/vuln/detail/CVE-2024-4340
- research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292
- nvd.nist.gov/vuln/detail/CVE-2024-4340
- cve.org/CVERecord?id=CVE-2024-4340
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.