{"cve":"CVE-2024-4340","nvd":{"published":"2024-04-30T15:15:53.407","modified":"2026-06-17T08:01:42.383","status":"Deferred","description":"Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-674"],"references":["https://github.com/advisories/GHSA-2m57-hf25-phgg","https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03","https://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/","https://github.com/advisories/GHSA-2m57-hf25-phgg","https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:49:08.435428910+00:00"},"epss":{"cve":"CVE-2024-4340","score":0.03237,"percentile":0.88283,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2m57-hf25-phgg","url":"https://osv.dev/vulnerability/GHSA-2m57-hf25-phgg","summary":"sqlparse parsing heavily nested list leads to Denial of Service","modified":"2026-09-10T03:50:10.904279272Z","packages":[{"ecosystem":"PyPI","name":"sqlparse","purl":"pkg:pypi/sqlparse","ranges":["<0.5.0"],"fixed":["0.5.0"]}]},{"id":"PYSEC-2026-1940","url":"https://osv.dev/vulnerability/PYSEC-2026-1940","summary":"sqlparse parsing heavily nested list leads to Denial of Service","modified":"2026-07-07T17:47:58.770802401Z","packages":[{"ecosystem":"PyPI","name":"sqlparse","purl":"pkg:pypi/sqlparse","ranges":["<0.5.0"],"fixed":["0.5.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}