{"schema_version":"1.9.0","id":"CVE-2024-4340","published":"2024-04-30T14:23:03.435Z","modified":"2026-08-12T03:51:39.045938471Z","aliases":["GHSA-2m57-hf25-phgg","PYSEC-2026-1940"],"related":["CGA-9h46-8225-2q3h","SUSE-SU-2024:1767-1","SUSE-SU-2024:1861-1"],"summary":"Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.","details":"Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.\n\n","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/andialbrecht/sqlparse","events":[{"introduced":"0"},{"fixed":"b4a39d9850969b4e1d6940d32094ee0b42a2cf03"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"0.5.0"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["0.4.4","0.4.3","0.4.2","0.4.1","0.4.0","0.3.1","0.3.0","0.2.4","0.2.3","0.2.2","0.2.1","0.2.0","0.1.18","0.1.17","0.1.16","0.1.15","0.1.14","0.1.13","0.1.12","0.1.11","0.1.10","0.1.9","0.1.8","0.1.7","0.1.6","0.1.5","0.1.3","0.1.2","0.1.1","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-4340.json"}}],"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4340.json"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-2m57-hf25-phgg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4340"},{"type":"ADVISORY","url":"https://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/"},{"type":"FIX","url":"https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03"},{"type":"PACKAGE","url":"https://pypi.org/project/pip"}],"database_specific":{"cna_assigner":"JFROG","cwe_ids":["CWE-674"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4340.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}