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

[CVE catalog]

Severity
Medium · CVSS 6.2CVSS: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.

DistributionPackageReleaseVersionStatus
Debiansqlparsesid0.5.5-2vulnerable
Debiansqlparseforky0.5.5-2vulnerable
Debiansqlparsetrixie0.5.3-1vulnerable
Debiansqlparsebookworm0.4.2-1+deb12u1vulnerable
PyPIsqlparseNot reported0.6.0fixed
PyPIsqlparseNot reported0.6.0fixed
Susepython-sqlparselinux enterprise server 16.00.5.3-160000.5.1fixed
Susepython-sqlparselinux enterprise server for sap applications 16.00.5.3-160000.5.1fixed
Susepython-sqlparselinux enterprise module for public cloud 15 sp60.4.4-150600.3.12.1fixed
Susepython-sqlparselinux enterprise module for python 3 15 sp70.4.4-150600.3.12.1fixed
Susepython-sqlparselinux enterprise module for public cloud 15 sp40.4.4-150400.6.19.1fixed
Susepython-sqlparselinux enterprise module for public cloud 15 sp50.4.4-150400.6.19.1fixed
Susepython-sqlparselinux enterprise module for package hub 15 sp70.2.4-150100.6.14.1fixed
Opensusepython-sqlparseleap 16.00.5.3-160000.5.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansqlparsesourcesid(unfixed)not yet assignedNot reported[1146628]
Debiansqlparsesourceforky(unfixed)not yet assignedNot reported[1146628]
Debiansqlparsesourcetrixie(unfixed)not yet assignedNot reported[1146628]
Debiansqlparsesourcebookworm(unfixed)not yet assignedNot reported[1146628]
PyPIsqlparsePyPINot reported0.6.0Not reportedGHSA-CFQR-CJX5-5JCMNot reported
PyPIsqlparsePyPINot reported0.6.0Not reportedPYSEC-2026-3923Not reported
Susepython-sqlparserpmlinux enterprise server 16.00.5.3-160000.5.1Not reportedSUSE-SU-2026:23634-1Not reported
Susepython-sqlparserpmlinux enterprise server for sap applications 16.00.5.3-160000.5.1Not reportedSUSE-SU-2026:23634-1Not reported
Susepython-sqlparserpmlinux enterprise module for public cloud 15 sp60.4.4-150600.3.12.1Not reportedSUSE-SU-2026:4145-1Not reported
Susepython-sqlparserpmlinux enterprise module for python 3 15 sp70.4.4-150600.3.12.1Not reportedSUSE-SU-2026:4145-1Not reported
Susepython-sqlparserpmlinux enterprise module for public cloud 15 sp40.4.4-150400.6.19.1Not reportedSUSE-SU-2026:4109-1Not reported
Susepython-sqlparserpmlinux enterprise module for public cloud 15 sp50.4.4-150400.6.19.1Not reportedSUSE-SU-2026:4109-1Not reported
Susepython-sqlparserpmlinux enterprise module for package hub 15 sp70.2.4-150100.6.14.1Not reportedSUSE-SU-2026:3978-1Not reported
Opensusepython-sqlparserpmleap 16.00.5.3-160000.5.1Not reportedOPENSUSE-SU-2026:21777-1Not reported

[Debian bug #1146628]

Notes

[trixie] sqlparse: Minor issue [bookworm] sqlparse: Minor issue, DoS

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [sqlparse]

    Details (2)
    • 0.4.2-1+deb12u1 · all · bookworm

      Affected

      nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12

    • 0.4.2-1+deb12u1 · all · bookworm

      Affected

      nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12

  • Source package: [sqlparse]

    Details (2)
    • 0.4.2-1+deb12u1 · all · bookworm

      Affected

      nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12

    • 0.4.2-1+deb12u1 · all · bookworm

      Affected

      nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12

  • [sqlformat]Affected

    Source package: [sqlparse]

    Details (2)
    • 0.4.2-1+deb12u1 · all · bookworm

      Affected

      nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12

    • 0.4.2-1+deb12u1 · all · bookworm

      Affected

      nvd · sqlparse · debian · bookworm; nvd · sqlparse · debian · 12

[Debian 13 (Trixie)]

  • Source package: [sqlparse]

    Details (2)
    • 0.5.3-1 · all · trixie

      Affected

      nvd · sqlparse · debian · 13

    • 0.5.3-1 · all · trixie

      Affected

      nvd · sqlparse · debian · 13

  • Source package: [sqlparse]

    Details (2)
    • 0.5.3-1 · all · trixie

      Affected

      nvd · sqlparse · debian · 13

    • 0.5.3-1 · all · trixie

      Affected

      nvd · sqlparse · debian · 13

  • [sqlformat]Affected

    Source package: [sqlparse]

    Details (2)
    • 0.5.3-1 · all · trixie

      Affected

      nvd · sqlparse · debian · 13

    • 0.5.3-1 · all · trixie

      Affected

      nvd · sqlparse · debian · 13

Observed:

References