
CVE catalog
CVE-2026-54284
SQL parse vulnerabilities
- Severity
- High · CVSS 8.7
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | sqlparse | sid | 0.5.5-2 | vulnerable |
| Debian | sqlparse | forky | 0.5.5-2 | vulnerable |
| Debian | sqlparse | trixie | 0.5.3-1 | vulnerable |
| Debian | sqlparse | bookworm | 0.4.2-1+deb12u1 | vulnerable |
| PyPI | sqlparse | Not reported | 0.6.0 | fixed |
| PyPI | sqlparse | Not reported | 0.6.0 | fixed |
| Ubuntu | sqlparse | noble | 0.4.4-1ubuntu0.2 | fixed |
| Ubuntu | python-sqlparse-doc | noble | 0.4.4-1ubuntu0.2 | fixed |
| Ubuntu | python3-sqlparse | noble | 0.4.4-1ubuntu0.2 | fixed |
| Ubuntu | sqlformat | noble | 0.4.4-1ubuntu0.2 | fixed |
| Suse | python-sqlparse | linux enterprise server 16.0 | 0.5.3-160000.4.1 | fixed |
| Suse | python-sqlparse | linux enterprise server for sap applications 16.0 | 0.5.3-160000.4.1 | fixed |
| Ubuntu | sqlparse | pro | 0.2.4-1 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-1build1 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-2 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-3 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-3ubuntu0.1 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-3ubuntu0.1+esm1 | fixed |
| Ubuntu | sqlparse | 22.04 | 0.4.1-1ubuntu1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.2 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.3 | fixed |
| Ubuntu | sqlparse | 24.04 | 0.4.2-1ubuntu1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1ubuntu0.1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1ubuntu0.2 | fixed |
| Ubuntu | sqlparse | 26.04 | 0.5.3-1 | vulnerable |
| Ubuntu | sqlparse | 26.04 | 0.5.4-1 | vulnerable |
| Ubuntu | sqlparse | 26.04 | 0.5.4-1ubuntu0.1 | fixed |
| Ubuntu | sqlparse | pro | 0.2.4-1 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-1build1 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-2 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-3 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-3ubuntu0.1 | vulnerable |
| Ubuntu | sqlparse | pro | 0.2.4-3ubuntu0.1+esm1 | fixed |
| Ubuntu | sqlparse | 22.04 | 0.4.1-1ubuntu1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.2 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.3 | fixed |
| Ubuntu | sqlparse | 24.04 | 0.4.2-1ubuntu1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1ubuntu0.1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1ubuntu0.2 | fixed |
| Ubuntu | sqlparse | 26.04 | 0.5.3-1 | vulnerable |
| Ubuntu | sqlparse | 26.04 | 0.5.4-1 | vulnerable |
| Ubuntu | sqlparse | 26.04 | 0.5.4-1ubuntu0.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for public cloud 15 sp4 | 0.4.4-150400.6.16.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for public cloud 15 sp5 | 0.4.4-150400.6.16.1 | fixed |
| Suse | python3-sqlparse | linux enterprise module for basesystem 15 sp7 | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise high performance computing 15 sp4-espos | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise high performance computing 15 sp4-ltss | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise high performance computing 15 sp5-espos | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise high performance computing 15 sp5-ltss | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server 15 sp4-ltss | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server 15 sp5-ltss | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server 15 sp6-ltss | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server for sap applications 15 sp4 | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server for sap applications 15 sp5 | 0.4.2-150300.23.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server for sap applications 15 sp6 | 0.4.2-150300.23.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for public cloud 15 sp6 | 0.4.4-150600.3.9.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for python 3 15 sp7 | 0.4.4-150600.3.9.1 | fixed |
| Suse | python-sqlparse | linux enterprise server 15 sp6-ltss | 0.4.4-150600.3.9.1 | fixed |
| Suse | python-sqlparse | linux enterprise server for sap applications 15 sp6 | 0.4.4-150600.3.9.1 | fixed |
| Opensuse | python-sqlparse | leap 16.0 | 0.5.3-160000.4.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for package hub 15 sp7 | 0.2.4-150100.6.11.1 | fixed |
| Opensuse | python-sqlparse | tumbleweed | 0.6.0-1.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | sqlparse | source | sid | (unfixed) | not yet assigned | Not reported | [1144932] |
| Debian | sqlparse | source | forky | (unfixed) | not yet assigned | Not reported | [1144932] |
| Debian | sqlparse | source | trixie | (unfixed) | not yet assigned | Not reported | [1144932] |
| Debian | sqlparse | source | bookworm | (unfixed) | not yet assigned | Not reported | [1144932] |
| PyPI | sqlparse | PyPI | Not reported | 0.6.0 | Not reported | PYSEC-2026-3699 | Not reported |
| PyPI | sqlparse | PyPI | Not reported | 0.6.0 | Not reported | GHSA-PWGV-4X5Q-6M9F | Not reported |
| Ubuntu | sqlparse | deb | noble | 0.4.4-1ubuntu0.2 | Not reported | Not reported | Not reported |
| Ubuntu | python-sqlparse-doc | deb | noble | 0.4.4-1ubuntu0.2 | Not reported | Not reported | Not reported |
| Ubuntu | python3-sqlparse | deb | noble | 0.4.4-1ubuntu0.2 | Not reported | Not reported | Not reported |
| Ubuntu | sqlformat | deb | noble | 0.4.4-1ubuntu0.2 | Not reported | Not reported | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise server 16.0 | 0.5.3-160000.4.1 | Not reported | SUSE-SU-2026:23561-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise server for sap applications 16.0 | 0.5.3-160000.4.1 | Not reported | SUSE-SU-2026:23561-1 | Not reported |
| Ubuntu | sqlparse | deb | pro | 0.2.4-3ubuntu0.1+esm1 | Not reported | USN-8808-1 | Not reported |
| Ubuntu | sqlparse | deb | 22.04 | 0.4.2-1ubuntu0.22.04.3 | Not reported | USN-8808-1 | Not reported |
| Ubuntu | sqlparse | deb | 24.04 | 0.4.4-1ubuntu0.2 | Not reported | USN-8808-1 | Not reported |
| Ubuntu | sqlparse | deb | 26.04 | 0.5.4-1ubuntu0.1 | Not reported | USN-8808-1 | Not reported |
| Ubuntu | sqlparse | deb | pro | 0.2.4-3ubuntu0.1+esm1 | Not reported | UBUNTU-CVE-2026-54284 | Not reported |
| Ubuntu | sqlparse | deb | 22.04 | 0.4.2-1ubuntu0.22.04.3 | Not reported | UBUNTU-CVE-2026-54284 | Not reported |
| Ubuntu | sqlparse | deb | 24.04 | 0.4.4-1ubuntu0.2 | Not reported | UBUNTU-CVE-2026-54284 | Not reported |
| Ubuntu | sqlparse | deb | 26.04 | 0.5.4-1ubuntu0.1 | Not reported | UBUNTU-CVE-2026-54284 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for public cloud 15 sp4 | 0.4.4-150400.6.16.1 | Not reported | SUSE-SU-2026:3910-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for public cloud 15 sp5 | 0.4.4-150400.6.16.1 | Not reported | SUSE-SU-2026:3910-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise module for basesystem 15 sp7 | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise high performance computing 15 sp4-espos | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise high performance computing 15 sp4-ltss | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise high performance computing 15 sp5-espos | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise high performance computing 15 sp5-ltss | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server 15 sp4-ltss | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server 15 sp5-ltss | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server 15 sp6-ltss | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server for sap applications 15 sp4 | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server for sap applications 15 sp5 | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server for sap applications 15 sp6 | 0.4.2-150300.23.1 | Not reported | SUSE-SU-2026:3906-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for public cloud 15 sp6 | 0.4.4-150600.3.9.1 | Not reported | SUSE-SU-2026:3907-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for python 3 15 sp7 | 0.4.4-150600.3.9.1 | Not reported | SUSE-SU-2026:3907-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise server 15 sp6-ltss | 0.4.4-150600.3.9.1 | Not reported | SUSE-SU-2026:3907-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise server for sap applications 15 sp6 | 0.4.4-150600.3.9.1 | Not reported | SUSE-SU-2026:3907-1 | Not reported |
| Opensuse | python-sqlparse | rpm | leap 16.0 | 0.5.3-160000.4.1 | Not reported | OPENSUSE-SU-2026:21690-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for package hub 15 sp7 | 0.2.4-150100.6.11.1 | Not reported | SUSE-SU-2026:3762-1 | Not reported |
| Opensuse | python-sqlparse | rpm | tumbleweed | 0.6.0-1.1 | Not reported | OPENSUSE-SU-2026:11557-1 | Not reported |
Notes
[trixie] sqlparse: Minor issue [bookworm] sqlparse: Minor issue, DoS
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-sqlparse]Affected
Source package: [sqlparse]
Details (2)
0.4.2-1+deb12u1· all · bookwormAffected
usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12
0.4.2-1+deb12u1· all · bookwormAffected
usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12
- [python-sqlparse-doc]Affected
Source package: [sqlparse]
Details (2)
0.4.2-1+deb12u1· all · bookwormAffected
usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12
0.4.2-1+deb12u1· all · bookwormAffected
usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12
- [sqlformat]Affected
Source package: [sqlparse]
Details (2)
0.4.2-1+deb12u1· all · bookwormAffected
usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12
0.4.2-1+deb12u1· all · bookwormAffected
usn · sqlparse · debian · bookworm; usn · sqlparse · debian · 12
[Debian 13 (Trixie)]
- [python3-sqlparse]Affected
Source package: [sqlparse]
Details (2)
0.5.3-1· all · trixieAffected
usn · sqlparse · debian · 13
0.5.3-1· all · trixieAffected
usn · sqlparse · debian · 13
- [python-sqlparse-doc]Affected
Source package: [sqlparse]
Details (2)
0.5.3-1· all · trixieAffected
usn · sqlparse · debian · 13
0.5.3-1· all · trixieAffected
usn · sqlparse · debian · 13
- [sqlformat]Affected
Source package: [sqlparse]
Details (2)
0.5.3-1· all · trixieAffected
usn · sqlparse · debian · 13
0.5.3-1· all · trixieAffected
usn · sqlparse · debian · 13
[openSUSE Tumbleweed]
- [python313-sqlparse]Unknown
Source package: [python-sqlparse]
Details (1)
0.6.0-1.1· noarch · tumbleweedUnknown · Fixed:
0.6.0-1.1Version impact unknown
usn · python-sqlparse · opensuse · tumbleweed
- [python314-sqlparse]Unknown
Source package: [python-sqlparse]
Details (1)
0.6.0-1.1· noarch · tumbleweedUnknown · Fixed:
0.6.0-1.1Version impact unknown
usn · python-sqlparse · opensuse · tumbleweed
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11557-1.json]
- [https://github.com/andialbrecht/sqlparse/commit/939b129e24c0ad5d51368b1aa72fffcaca76f06f]
- [https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-pwgv-4x5q-6m9f]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-54284]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-54284]
- [https://osv.dev/vulnerability/GHSA-pwgv-4x5q-6m9f]
- [https://osv.dev/vulnerability/SUSE-SU-2026:23561-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:3762-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:3906-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:3907-1]
- [https://osv.dev/vulnerability/SUSE-SU-2026:3910-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-54284]
- [https://osv.dev/vulnerability/USN-8808-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:11557-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2026:21690-1]
- [https://security-tracker.debian.org/tracker/CVE-2026-54284]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-54284.json]
- [https://ubuntu.com/security/notices/USN-8808-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-3555.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]