{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-4340","id":"CVE-2024-4340","title":"Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.","description":"Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.\n\n","descriptionLong":"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","updated":"2026-10-28T02:30:29.984153336Z","reserved":"2024-04-30T11:12:30.839Z","status":"Deferred","rejected":false,"assigner":"JFROG","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"JFROG"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"JFROG"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"jfrog.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["sqlparse"],"affectedProducts":[{"vendor":"","product":"sqlparse","defaultStatus":null,"versions":[{"lessThan":"0.5.0","status":"affected","version":"0","versionType":"python"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"sqlparse","purl":"pkg:pypi/sqlparse","ranges":["<0.5.0"],"fixed":["0.5.0"],"advisory":"GHSA-2m57-hf25-phgg"}],"cwes":["CWE-674"],"aliases":["GHSA-2m57-hf25-phgg","PYSEC-2026-1940"],"references":[{"url":"https://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/","tags":["third-party-advisory","x_transferred","advisory"]},{"url":"https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03","tags":["patch","x_transferred","fix","web"]},{"url":"https://github.com/advisories/GHSA-2m57-hf25-phgg","tags":["x_transferred","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4340.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4340","tags":["advisory"]},{"url":"https://pypi.org/project/pip","tags":["package"]},{"url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-2m57-hf25-phgg","tags":["web"]},{"url":"https://github.com/andialbrecht/sqlparse","tags":["package"]},{"url":"https://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292","tags":["web"]},{"url":"https://pypi.org/project/sqlparse","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.0321,"epssPercentile":0.88446,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-4340","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4340","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-4340","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2m57-hf25-phgg","ok":true,"note":"GHSA-2m57-hf25-phgg"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-4340","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}