CVE-2026-84305
published medium CVSS 4.0 · 5.1sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| andialbrecht | — | sqlparse< 0.6.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | SLE-15-SP4 | python311-sqlparsenoarch | Advisory build | 0.4.4-150400.6.19.1 | SUSE-SU-2026:4109-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-sqlparsenoarch | Advisory build | 0.4.4-150400.6.19.1 | SUSE-SU-2026:4109-1 |
| SUSE / openSUSE | SLE-15-SP6 | python311-sqlparsenoarch | Advisory build | 0.4.4-150600.3.12.1 | SUSE-SU-2026:4145-1 |
| SUSE / openSUSE | SLE-15-SP7 | python2-sqlparsenoarch | Advisory build | 0.2.4-150100.6.14.1 | SUSE-SU-2026:3978-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-sqlparsenoarch | Advisory build | 0.4.4-150600.3.12.1 | SUSE-SU-2026:4145-1 |
| SUSE / openSUSE | SLE-16 | python313-sqlparsenoarch | Advisory build | 0.5.3-160000.5.1 | SUSE-SU-2026:23634-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-sqlparsenoarch | Advisory build | 0.4.4-150600.3.12.1 | SUSE-SU-2026:4145-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-sqlparsenoarch | Advisory build | 0.5.3-160000.5.1 | OPENSUSE-SU-2026:21777-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| andialbrecht | sqlparse | < 0.6.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-407 CWE-407: Inefficient Algorithmic Complexity
References
3Provider assertions
2GitHub_M · cna
sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6e32b2cd8cab54e1d000b85cd350a56f0c44d7aa0b3de5428f13434eb8c8e457
- Ingested
- 23 Sep 2026, 09:36:16 UTC
- Source record
- Official CVE record