
CVE catalog
CVE-2026-84305
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 Rein
- Severity
- Medium · CVSS 6.2
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.19% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | sqlparse | sid | 0.5.5-2 | vulnerable |
| Debian | sqlparse | forky | 0.5.5-2 | vulnerable |
| Debian | sqlparse | trixie | 0.5.3-1 | vulnerable |
| Debian | sqlparse | bookworm | 0.4.2-1+deb12u1 | vulnerable |
| PyPI | sqlparse | Not reported | 0.6.0 | fixed |
| PyPI | sqlparse | Not reported | 0.6.0 | fixed |
| Suse | python-sqlparse | linux enterprise server 16.0 | 0.5.3-160000.5.1 | fixed |
| Suse | python-sqlparse | linux enterprise server for sap applications 16.0 | 0.5.3-160000.5.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for public cloud 15 sp6 | 0.4.4-150600.3.12.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for python 3 15 sp7 | 0.4.4-150600.3.12.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for public cloud 15 sp4 | 0.4.4-150400.6.19.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for public cloud 15 sp5 | 0.4.4-150400.6.19.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for package hub 15 sp7 | 0.2.4-150100.6.14.1 | fixed |
| Opensuse | python-sqlparse | leap 16.0 | 0.5.3-160000.5.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | sqlparse | source | sid | (unfixed) | not yet assigned | Not reported | [1146628] |
| Debian | sqlparse | source | forky | (unfixed) | not yet assigned | Not reported | [1146628] |
| Debian | sqlparse | source | trixie | (unfixed) | not yet assigned | Not reported | [1146628] |
| Debian | sqlparse | source | bookworm | (unfixed) | not yet assigned | Not reported | [1146628] |
| PyPI | sqlparse | PyPI | Not reported | 0.6.0 | Not reported | GHSA-CFQR-CJX5-5JCM | Not reported |
| PyPI | sqlparse | PyPI | Not reported | 0.6.0 | Not reported | PYSEC-2026-3923 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise server 16.0 | 0.5.3-160000.5.1 | Not reported | SUSE-SU-2026:23634-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise server for sap applications 16.0 | 0.5.3-160000.5.1 | Not reported | SUSE-SU-2026:23634-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for public cloud 15 sp6 | 0.4.4-150600.3.12.1 | Not reported | SUSE-SU-2026:4145-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for python 3 15 sp7 | 0.4.4-150600.3.12.1 | Not reported | SUSE-SU-2026:4145-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for public cloud 15 sp4 | 0.4.4-150400.6.19.1 | Not reported | SUSE-SU-2026:4109-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for public cloud 15 sp5 | 0.4.4-150400.6.19.1 | Not reported | SUSE-SU-2026:4109-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for package hub 15 sp7 | 0.2.4-150100.6.14.1 | Not reported | SUSE-SU-2026:3978-1 | Not reported |
| Opensuse | python-sqlparse | rpm | leap 16.0 | 0.5.3-160000.5.1 | Not reported | OPENSUSE-SU-2026:21777-1 | Not reported |
Notes
[trixie] sqlparse: Minor issue [bookworm] sqlparse: Minor issue, DoS
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-sqlparse]Affected
Source package: [sqlparse]
Details (2)
0.4.2-1+deb12u1· all · bookwormAffected
nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12
0.4.2-1+deb12u1· all · bookwormAffected
nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12
- [python-sqlparse-doc]Affected
Source package: [sqlparse]
Details (2)
0.4.2-1+deb12u1· all · bookwormAffected
nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12
0.4.2-1+deb12u1· all · bookwormAffected
nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12
- [sqlformat]Affected
Source package: [sqlparse]
Details (2)
0.4.2-1+deb12u1· all · bookwormAffected
nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12
0.4.2-1+deb12u1· all · bookwormAffected
nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12
[Debian 13 (Trixie)]
- [python3-sqlparse]Affected
Source package: [sqlparse]
Details (2)
0.5.3-1· all · trixieAffected
nvd · sqlparse · debian · 13
0.5.3-1· all · trixieAffected
nvd · sqlparse · debian · 13
- [python-sqlparse-doc]Affected
Source package: [sqlparse]
Details (2)
0.5.3-1· all · trixieAffected
nvd · sqlparse · debian · 13
0.5.3-1· all · trixieAffected
nvd · sqlparse · debian · 13
- [sqlformat]Affected
Source package: [sqlparse]
Details (2)
0.5.3-1· all · trixieAffected
nvd · sqlparse · debian · 13
0.5.3-1· all · trixieAffected
nvd · sqlparse · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2026_3978-1.json]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-84305]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-84305]
- [https://osv.dev/vulnerability/PYSEC-2026-3923]
- [https://osv.dev/vulnerability/SUSE-SU-2026:23634-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:3978-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:4109-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:4145-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:21777-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-84305]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-84305.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]