CVE-2026-84305andialbrecht sqlparse
Medium 5.1
Follow: this CVE · andialbrecht · andialbrecht sqlparse We alert you by email or Slack (account required).
- Priority
- 31
- CVSS 4.0
- 5.1
- EPSS
- —
- Auth required
- Yes
- Published
- Sep 1, 2026
- Updated
- Sep 9, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-407
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- 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/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
What happens
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.
What to do
- Apply the vendor's security update for sqlparse.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | sqlparse |
< 0.6.0 |
0.6.0 |
pip install "sqlparse>=0.6.0" |
| PyPI | sqlparse |
< 0.6.0 |
0.6.0 |
pip install "sqlparse>=0.6.0" |
Per OSV / GitHub Advisories (GHSA-cfqr-cjx5-5jcm, PYSEC-2026-3923). Check the version in your lockfile before upgrading.
Affected products
- andialbrecht · sqlparse
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Security update for python-sqlparse · SUSE · SUSE-SU-2026:4145-1 · Sep 14, 2026 Medium
- Security update for python-sqlparse · SUSE · SUSE-SU-2026:4109-1 · Sep 9, 2026 Medium
- Security update for python-sqlparse · SUSE · openSUSE-SU-2026:21777-1 · Sep 6, 2026 Medium
Also: SUSE (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.