{"id":"DHI-zd3f-hruw-r7n7-nbpw","summary":"sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and…","details":"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.","modified":"2026-11-21T14:30:40.747223184Z","published":"2026-11-11T18:53:03Z","upstream":["CVE-2026-84305"],"references":[{"type":"ADVISORY","url":"https://scout.docker.com/v/DHI-zd3f-hruw-r7n7-nbpw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84305"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-84305"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-cfqr-cjx5-5jcm"},{"type":"ADVISORY","url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-cfqr-cjx5-5jcm"},{"type":"FIX","url":"https://github.com/andialbrecht/sqlparse/commit/a51df6d9e2d31b44be9adb6bc8732517db6bf96b"},{"type":"WEB","url":"https://github.com/andialbrecht/sqlparse/releases/tag/0.6.0"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2026-84305"},{"type":"ADVISORY","url":"http://people.ubuntu.com/~ubuntu-security/cve/CVE-2026-84305"}],"affected":[{"package":{"name":"airflow","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/airflow"},"versions":["3.3.0-0","3.3.0-1","3.3.0-2","3.3.0-3","3.3.1-0","3.3.1-1","3.3.1-10","3.3.1-11","3.3.1-12","3.3.1-13","3.3.1-14","3.3.1-15","3.3.1-2","3.3.1-3","3.3.1-4","3.3.1-5","3.3.1-6","3.3.1-7","3.3.1-8","3.3.1-9","3.3.2-0","3.3.2-1","3.3.2-10","3.3.2-11","3.3.2-12","3.3.2-13","3.3.2-14","3.3.2-15","3.3.2-16","3.3.2-17","3.3.2-18","3.3.2-19","3.3.2-2","3.3.2-3","3.3.2-4","3.3.2-5","3.3.2-6","3.3.2-7","3.3.2-8","3.3.2-9","3.4.0-0","3.4.0-1","3.4.0-2","3.4.0-3","3.4.0-4","3.4.0-5","3.4.0-6","3.4.0-7","3.4.0-8"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zd3f-hruw-r7n7-nbpw.json"}},{"package":{"name":"datahub-ingestion","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/datahub-ingestion"},"versions":["1.5.0.7-0","1.6.0.1-0","1.6.0.1-1","1.6.0.1-2","1.6.0.1-3","1.6.0.2-0","1.6.0.2-1","1.7.0.10-0","1.7.0.12-0","1.7.0.13-0","1.7.0.14-0","1.7.0.14-1","1.7.0.14-2","1.7.0.16-0","1.7.0.16-1","1.7.0.17-0","1.7.0.17-1","1.7.0.17-2","1.7.0.17-3","1.7.0.18-0","1.7.0.19-0","1.7.0.19-1","1.7.0.19-2","1.7.0.19-3","1.7.0.19-4","1.7.0.19-5","1.7.0.19-6","1.7.0.20-6","1.7.0.20-7","1.7.0.20-8"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zd3f-hruw-r7n7-nbpw.json"}},{"package":{"name":"netbox","ecosystem":"Docker Hardened Images:Debian:13","purl":"pkg:deb/dhi/netbox"},"versions":["4.6.10-0","4.6.10-1","4.6.7-0","4.6.8-0","4.6.8-1","4.6.8-2","4.6.8-3","4.6.9-0","4.6.9-1","4.6.9-2","4.7.1-0","4.7.1-1","4.7.1-2","4.7.1-3","4.7.1-4","4.7.1-5","4.7.1-6","4.7.2-0","4.7.2-1","4.7.2-2","4.7.2-3","4.7.2-4","4.7.3-0","4.7.3-1","4.7.3-2","4.7.3-3","4.7.3-4","4.7.4-0","4.7.4-1","4.7.4-2","4.7.4-3","4.7.4-4","4.7.4-5","4.7.4-6","4.7.5-0","4.7.5-1","4.7.5-2"],"database_specific":{"owner_kind":"HSP","source":"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-zd3f-hruw-r7n7-nbpw.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}