ADVISORIES

Vulnerability

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 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.

16 advisories report this vulnerability, across 7 ecosystems.

Advisories

  • CGA-45f4-fc2x-q8f8
    CVE-2026-84305 Chainguard Updated 5 November 2026
  • CGA-5235-8c4v-9ff6
    CVE-2026-84305 Chainguard Updated 5 November 2026
  • CGA-fm45-86vh-cv44
    CVE-2026-84305 Chainguard Updated 5 November 2026
  • CGA-hc3h-pr2h-9hxg
    CVE-2026-84305 Chainguard Updated 5 November 2026
  • CGA-j475-833j-vx39
    CVE-2026-84305 Chainguard Updated 5 November 2026
  • DEBIAN-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…

    CVE-2026-84305 Debian Updated 1 October 2026
  • GHSA-cfqr-cjx5-5jcm

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

    Moderate CVE-2026-84305 PyPI Updated 10 September 2026
  • OESA-2026-4320

    python-sqlparse security update

    Medium CVE-2026-59894CVE-2026-84305 openEuler Updated 16 October 2026
  • PYSEC-2026-3923

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

    CVE-2026-84305 PyPI Updated 10 September 2026
  • SUSE-SU-2026:23634-1

    Security update for python-sqlparse

    CVE-2026-84305 SUSE Updated 29 September 2026
  • SUSE-SU-2026:3978-1

    Security update for python-sqlparse

    CVE-2026-84305 SUSE Updated 13 September 2026
  • SUSE-SU-2026:4109-1

    Security update for python-sqlparse

    CVE-2026-84305 SUSE Updated 14 September 2026
  • SUSE-SU-2026:4145-1

    Security update for python-sqlparse

    CVE-2026-84305 SUSE Updated 15 September 2026
  • SUSEVEX-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…

    Moderate CVE-2026-84305 SUSE Updated 17 September 2026
  • UBUNTU-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…

    CVE-2026-84305 Ubuntu Updated 17 October 2026
  • openSUSE-SU-2026:21777-1

    Security update for python-sqlparse

    CVE-2026-84305 openSUSE Updated 9 September 2026

References