{"id":"CVE-2024-4340","published":"2024-04-30T14:23:03Z","modified":"2025-11-03T22:05:00Z","title":"Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.","vendor":null,"product":null,"tier":"tail","description":{"text":"Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.\n\n","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0321,"percentile":0.88482,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/","tags":["third-party-advisory"]},{"url":"https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03","tags":["patch"]},{"url":"https://github.com/advisories/GHSA-2m57-hf25-phgg","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html","tags":[]}],"priority":{"score":22.9,"factors":[{"name":"EPSS percentile","points":17.7},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":null,"product":null,"versions":["< 0.5.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-04-30T16:07:16.196262Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"sqlparse","vulnerableRanges":["<0.5.0"],"patched":["0.5.0"],"from":["GHSA-2m57-hf25-phgg","PYSEC-2026-1940"],"provenance":"source"}],"summary":{"text":"The flaw is an uncontrolled recursion issue in the sqlparse library's parse() function, which fails when it is given a heavily nested list. An attacker who can get such input passed to sqlparse.parse() can trigger a RecursionError that causes a denial of service, and the conditions are as the vector indicates: the attack is reachable over the network with low complexity, requiring no privileges and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:54Z"},"euvd":{"id":"EUVD-2024-1064","exploited":false,"provenance":"source"}}