{"cve":"CVE-2026-84305","nvd":{"published":"2026-09-01T19:17:30.887","modified":"2026-09-09T21:09:13.080","status":"Deferred","description":"sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly rebuilds and joins the statement prefix. Thousands of offset calculations walk an expanding token tree, producing quadratic CPU consumption for inputs that remain below MAX_GROUPING_TOKENS and causing request delays, reduced throughput, or worker starvation. This issue is fixed in version 0.6.0.","cvss_v4":{"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","score":5.1},"cvss_v3":null,"cwes":["CWE-407"],"references":["https://github.com/andialbrecht/sqlparse/commit/a51df6d9e2d31b44be9adb6bc8732517db6bf96b","https://github.com/andialbrecht/sqlparse/releases/tag/0.6.0","https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-cfqr-cjx5-5jcm","https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-cfqr-cjx5-5jcm"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:50:50.842544443+00:00"},"epss":{"cve":"CVE-2026-84305","score":0.00189,"percentile":0.08563,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-cfqr-cjx5-5jcm","url":"https://osv.dev/vulnerability/GHSA-cfqr-cjx5-5jcm","summary":"sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption","modified":"2026-09-10T12:25:55.468982803Z","packages":[{"ecosystem":"PyPI","name":"sqlparse","purl":"pkg:pypi/sqlparse","ranges":["<0.6.0"],"fixed":["0.6.0"]}]},{"id":"PYSEC-2026-3923","url":"https://osv.dev/vulnerability/PYSEC-2026-3923","summary":"sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption","modified":"2026-09-10T12:15:12.861384023Z","packages":[{"ecosystem":"PyPI","name":"sqlparse","purl":"pkg:pypi/sqlparse","ranges":["<0.6.0"],"fixed":["0.6.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."]}