CVE-2026-84305: andialbrecht sqlparse Inefficient Algorithmic Complexity
Vulnerability summary
CVE-2026-84305 is a medium (CVSS 5.1) Inefficient Algorithmic Complexity vulnerability in andialbrecht sqlparse. EPSS estimates a 0.19% chance of exploitation in the next 30 days, higher than 8% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 01-09-2026PublishedVulnerability first disclosed.
- 01-09-2026Last modifiedVulnerability information updated.
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 metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated5.1MediumCVSS: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
- OSV · WolfiEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- NVDNIST5.1MediumCVSS: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
EPSS trend
Probability
0.19%
Chance of exploitation in the next 30 days
Percentile
8%
Versus all other CVEs
30-day change
+0.06 pp
From 0.13% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Suse7 products
- python-sqlparse&distro=SUSE Linux Enterprise Module for Package Hub 15 SP7< 0.2.4-150100.6.14.1
- python-sqlparse&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP4< 0.4.4-150400.6.19.1
- python-sqlparse&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP5< 0.4.4-150400.6.19.1
- python-sqlparse&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP6< 0.4.4-150600.3.12.1
- python-sqlparse&distro=SUSE Linux Enterprise Module for Python 3 15 SP7< 0.4.4-150600.3.12.1
Chainguard3 products
- dbt-bigquery< 1.10.3-r8
- dbt-core< 1.12.3-r0
- mlflow< 3.16.0-r0
Andialbrecht1 product
- sqlparse< 0.6.0
Debian1 product
- sqlparseAll versions (No fix recorded)
Opensuse1 product
- python-sqlparse&distro=openSUSE Leap 16.0< 0.5.3-160000.5.1
PyPI1 product
- sqlparse< 0.6.0
Ubuntu1 product
- sqlparseAll versions (No fix recorded)
Wolfi1 product
- mlflow< 3.16.0-r0
8 vendors · 16 products
References
17 links- github.com/andialbrecht/sqlparse/security/advisories/GHSA-cfqr-cjx5-5jcmX Refsource CONFIRMWEBREPORTAdvisory
- github.com/andialbrecht/sqlparse/commit/a51df6d9e2d31b44be9adb6bc8732517db6bf96bX Refsource MISCWEBFIX
Show all 17 references
- pypi.org/project/sqlparsePACKAGE