{"id":"UBUNTU-CVE-2024-4340","details":"Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.","modified":"2026-01-30T01:16:03.854065Z","published":"2024-04-30T15:15:00Z","related":["USN-6771-1"],"upstream":["CVE-2024-4340"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-4340"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-4340"},{"type":"REPORT","url":"https://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/"},{"type":"REPORT","url":"https://github.com/advisories/GHSA-2m57-hf25-phgg"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6771-1"}],"affected":[{"package":{"name":"sqlparse","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/sqlparse@0.4.2-1ubuntu0.22.04.2?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.2-1ubuntu0.22.04.2"}]}],"versions":["0.4.1-1ubuntu1","0.4.2-1","0.4.2-1ubuntu0.22.04.1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-sqlparse","binary_version":"0.4.2-1ubuntu0.22.04.2"},{"binary_name":"sqlformat","binary_version":"0.4.2-1ubuntu0.22.04.2"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-4340.json"}},{"package":{"name":"sqlparse","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/sqlparse@0.4.4-1ubuntu0.1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.4-1ubuntu0.1"}]}],"versions":["0.4.2-1ubuntu1","0.4.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-sqlparse","binary_version":"0.4.4-1ubuntu0.1"},{"binary_name":"sqlformat","binary_version":"0.4.4-1ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-4340.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}