CVE catalog

CVE-2026-54284

SQL parse vulnerabilities

[CVE catalog]

Severity
High · CVSS 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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
Published
Source
[NVD] · [CVE record]
EPSS
0.33% · Oct 25, 2026

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by group_parenthesis and group_case, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split() before depth and token limits terminate processing. 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
Ubuntusqlparsenoble0.4.4-1ubuntu0.2fixed
Ubuntupython-sqlparse-docnoble0.4.4-1ubuntu0.2fixed
Ubuntupython3-sqlparsenoble0.4.4-1ubuntu0.2fixed
Ubuntusqlformatnoble0.4.4-1ubuntu0.2fixed
Susepython-sqlparselinux enterprise server 16.00.5.3-160000.4.1fixed
Susepython-sqlparselinux enterprise server for sap applications 16.00.5.3-160000.4.1fixed
Ubuntusqlparsepro0.2.4-1vulnerable
Ubuntusqlparsepro0.2.4-1build1vulnerable
Ubuntusqlparsepro0.2.4-2vulnerable
Ubuntusqlparsepro0.2.4-3vulnerable
Ubuntusqlparsepro0.2.4-3ubuntu0.1vulnerable
Ubuntusqlparsepro0.2.4-3ubuntu0.1+esm1fixed
Ubuntusqlparse22.040.4.1-1ubuntu1vulnerable
Ubuntusqlparse22.040.4.2-1vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.1vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.2vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.3fixed
Ubuntusqlparse24.040.4.2-1ubuntu1vulnerable
Ubuntusqlparse24.040.4.4-1vulnerable
Ubuntusqlparse24.040.4.4-1ubuntu0.1vulnerable
Ubuntusqlparse24.040.4.4-1ubuntu0.2fixed
Ubuntusqlparse26.040.5.3-1vulnerable
Ubuntusqlparse26.040.5.4-1vulnerable
Ubuntusqlparse26.040.5.4-1ubuntu0.1fixed
Ubuntusqlparsepro0.2.4-1vulnerable
Ubuntusqlparsepro0.2.4-1build1vulnerable
Ubuntusqlparsepro0.2.4-2vulnerable
Ubuntusqlparsepro0.2.4-3vulnerable
Ubuntusqlparsepro0.2.4-3ubuntu0.1vulnerable
Ubuntusqlparsepro0.2.4-3ubuntu0.1+esm1fixed
Ubuntusqlparse22.040.4.1-1ubuntu1vulnerable
Ubuntusqlparse22.040.4.2-1vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.1vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.2vulnerable
Ubuntusqlparse22.040.4.2-1ubuntu0.22.04.3fixed
Ubuntusqlparse24.040.4.2-1ubuntu1vulnerable
Ubuntusqlparse24.040.4.4-1vulnerable
Ubuntusqlparse24.040.4.4-1ubuntu0.1vulnerable
Ubuntusqlparse24.040.4.4-1ubuntu0.2fixed
Ubuntusqlparse26.040.5.3-1vulnerable
Ubuntusqlparse26.040.5.4-1vulnerable
Ubuntusqlparse26.040.5.4-1ubuntu0.1fixed
Susepython-sqlparselinux enterprise module for public cloud 15 sp40.4.4-150400.6.16.1fixed
Susepython-sqlparselinux enterprise module for public cloud 15 sp50.4.4-150400.6.16.1fixed
Susepython3-sqlparselinux enterprise module for basesystem 15 sp70.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise high performance computing 15 sp4-espos0.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise high performance computing 15 sp4-ltss0.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise high performance computing 15 sp5-espos0.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise high performance computing 15 sp5-ltss0.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise server 15 sp4-ltss0.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise server 15 sp5-ltss0.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise server 15 sp6-ltss0.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise server for sap applications 15 sp40.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise server for sap applications 15 sp50.4.2-150300.23.1fixed
Susepython3-sqlparselinux enterprise server for sap applications 15 sp60.4.2-150300.23.1fixed
Susepython-sqlparselinux enterprise module for public cloud 15 sp60.4.4-150600.3.9.1fixed
Susepython-sqlparselinux enterprise module for python 3 15 sp70.4.4-150600.3.9.1fixed
Susepython-sqlparselinux enterprise server 15 sp6-ltss0.4.4-150600.3.9.1fixed
Susepython-sqlparselinux enterprise server for sap applications 15 sp60.4.4-150600.3.9.1fixed
Opensusepython-sqlparseleap 16.00.5.3-160000.4.1fixed
Susepython-sqlparselinux enterprise module for package hub 15 sp70.2.4-150100.6.11.1fixed
Opensusepython-sqlparsetumbleweed0.6.0-1.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiansqlparsesourcesid(unfixed)not yet assignedNot reported[1144932]
Debiansqlparsesourceforky(unfixed)not yet assignedNot reported[1144932]
Debiansqlparsesourcetrixie(unfixed)not yet assignedNot reported[1144932]
Debiansqlparsesourcebookworm(unfixed)not yet assignedNot reported[1144932]
PyPIsqlparsePyPINot reported0.6.0Not reportedPYSEC-2026-3699Not reported
PyPIsqlparsePyPINot reported0.6.0Not reportedGHSA-PWGV-4X5Q-6M9FNot reported
Ubuntusqlparsedebnoble0.4.4-1ubuntu0.2Not reportedNot reportedNot reported
Ubuntupython-sqlparse-docdebnoble0.4.4-1ubuntu0.2Not reportedNot reportedNot reported
Ubuntupython3-sqlparsedebnoble0.4.4-1ubuntu0.2Not reportedNot reportedNot reported
Ubuntusqlformatdebnoble0.4.4-1ubuntu0.2Not reportedNot reportedNot reported
Susepython-sqlparserpmlinux enterprise server 16.00.5.3-160000.4.1Not reportedSUSE-SU-2026:23561-1Not reported
Susepython-sqlparserpmlinux enterprise server for sap applications 16.00.5.3-160000.4.1Not reportedSUSE-SU-2026:23561-1Not reported
Ubuntusqlparsedebpro0.2.4-3ubuntu0.1+esm1Not reportedUSN-8808-1Not reported
Ubuntusqlparsedeb22.040.4.2-1ubuntu0.22.04.3Not reportedUSN-8808-1Not reported
Ubuntusqlparsedeb24.040.4.4-1ubuntu0.2Not reportedUSN-8808-1Not reported
Ubuntusqlparsedeb26.040.5.4-1ubuntu0.1Not reportedUSN-8808-1Not reported
Ubuntusqlparsedebpro0.2.4-3ubuntu0.1+esm1Not reportedUBUNTU-CVE-2026-54284Not reported
Ubuntusqlparsedeb22.040.4.2-1ubuntu0.22.04.3Not reportedUBUNTU-CVE-2026-54284Not reported
Ubuntusqlparsedeb24.040.4.4-1ubuntu0.2Not reportedUBUNTU-CVE-2026-54284Not reported
Ubuntusqlparsedeb26.040.5.4-1ubuntu0.1Not reportedUBUNTU-CVE-2026-54284Not reported
Susepython-sqlparserpmlinux enterprise module for public cloud 15 sp40.4.4-150400.6.16.1Not reportedSUSE-SU-2026:3910-1Not reported
Susepython-sqlparserpmlinux enterprise module for public cloud 15 sp50.4.4-150400.6.16.1Not reportedSUSE-SU-2026:3910-1Not reported
Susepython3-sqlparserpmlinux enterprise module for basesystem 15 sp70.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise high performance computing 15 sp4-espos0.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise high performance computing 15 sp4-ltss0.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise high performance computing 15 sp5-espos0.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise high performance computing 15 sp5-ltss0.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise server 15 sp4-ltss0.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise server 15 sp5-ltss0.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise server 15 sp6-ltss0.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise server for sap applications 15 sp40.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise server for sap applications 15 sp50.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython3-sqlparserpmlinux enterprise server for sap applications 15 sp60.4.2-150300.23.1Not reportedSUSE-SU-2026:3906-1Not reported
Susepython-sqlparserpmlinux enterprise module for public cloud 15 sp60.4.4-150600.3.9.1Not reportedSUSE-SU-2026:3907-1Not reported
Susepython-sqlparserpmlinux enterprise module for python 3 15 sp70.4.4-150600.3.9.1Not reportedSUSE-SU-2026:3907-1Not reported
Susepython-sqlparserpmlinux enterprise server 15 sp6-ltss0.4.4-150600.3.9.1Not reportedSUSE-SU-2026:3907-1Not reported
Susepython-sqlparserpmlinux enterprise server for sap applications 15 sp60.4.4-150600.3.9.1Not reportedSUSE-SU-2026:3907-1Not reported
Opensusepython-sqlparserpmleap 16.00.5.3-160000.4.1Not reportedOPENSUSE-SU-2026:21690-1Not reported
Susepython-sqlparserpmlinux enterprise module for package hub 15 sp70.2.4-150100.6.11.1Not reportedSUSE-SU-2026:3762-1Not reported
Opensusepython-sqlparserpmtumbleweed0.6.0-1.1Not reportedOPENSUSE-SU-2026:11557-1Not reported

[Debian bug #1144932]

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

      usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12

    • 0.4.2-1+deb12u1 · all · bookworm

      Affected

      usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12

  • Source package: [sqlparse]

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

      Affected

      usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12

    • 0.4.2-1+deb12u1 · all · bookworm

      Affected

      usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12

  • [sqlformat]Affected

    Source package: [sqlparse]

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

      Affected

      usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12

    • 0.4.2-1+deb12u1 · all · bookworm

      Affected

      usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12

[Debian 13 (Trixie)]

  • Source package: [sqlparse]

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

      Affected

      usn · sqlparse · debian · 13

    • 0.5.3-1 · all · trixie

      Affected

      usn · sqlparse · debian · 13

  • Source package: [sqlparse]

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

      Affected

      usn · sqlparse · debian · 13

    • 0.5.3-1 · all · trixie

      Affected

      usn · sqlparse · debian · 13

  • [sqlformat]Affected

    Source package: [sqlparse]

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

      Affected

      usn · sqlparse · debian · 13

    • 0.5.3-1 · all · trixie

      Affected

      usn · sqlparse · debian · 13

[openSUSE Tumbleweed]

  • Source package: [python-sqlparse]

    Details (1)
    • 0.6.0-1.1 · noarch · tumbleweed

      Unknown · Fixed: 0.6.0-1.1

      Version impact unknown

      usn · python-sqlparse · opensuse · tumbleweed

  • Source package: [python-sqlparse]

    Details (1)
    • 0.6.0-1.1 · noarch · tumbleweed

      Unknown · Fixed: 0.6.0-1.1

      Version impact unknown

      usn · python-sqlparse · opensuse · tumbleweed

Observed:

References