5.1

CVE-2026-84305: sqlparse: Reindentation of tuple lists causes near-cap quadratic CPU consumption

Deferred
AliasesSUSE-SU-2026:23634-1SUSE-SU-2026:3978-1SUSE-SU-2026:4109-1
Published 01-09-2026Last modified 01-09-2026

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.9% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.1, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.1/10
010
Medium · v4.0 (CVE.org)
EPSS score
0.19%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 01-09-2026
    PublishedVulnerability first disclosed.
  2. 01-09-2026
    Last 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

EPSS trend

Probability

0.19%

Chance of exploitation in the next 30 days

Percentile

9%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.19% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

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
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
Show all 17 references