{"id":"CVE-2024-4340","aliases":["GHSA-2m57-hf25-phgg","PYSEC-2026-1940"],"url":"https://o3.security/vulnerability/CVE-2024-4340","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","published":"2024-04-30T14:23:03.435Z","modified":"2026-07-15T01:48:55.800164649Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"sqlparse","fixedVersion":"0.5.0"}],"fix":{"url":"https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03","label":"andialbrecht/sqlparse@b4a39d9"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T01:48:55.800164649Z"}}