cve.bz

CVE-2026-54284 andialbrecht sqlparse: Inefficient Algorithmic Complexity

8.7 highEPSS 0.3%Fix available

High (8.7) in andialbrecht sqlparse. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in sqlparse 0.6.0.

On this page
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.

Severity

CVSS 4.0

8.7 high
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
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 27th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-08-17. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-407 Inefficient Algorithmic Complexity
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-54284 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-54284?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-54284?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-54284 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
andialbrecht sqlparse< 0.6.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pwgv-4x5q-6m9fPyPIsqlparse<0.6.00.6.0
PYSEC-2026-3699PyPIsqlparse<0.6.00.6.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14sqlparseno fix listedDEBIAN-CVE-2026-54284
Ubuntu22.04:LTSsqlparse0.4.2-1ubuntu0.22.04.3UBUNTU-CVE-2026-54284 USN-8808-1
Ubuntu24.04:LTSsqlparse0.4.4-1ubuntu0.2UBUNTU-CVE-2026-54284 USN-8808-1
Ubuntu26.04:LTSsqlparse0.5.4-1ubuntu0.1UBUNTU-CVE-2026-54284 USN-8808-1
UbuntuPro:16.04:LTSsqlparse0.1.18-1ubuntu0.1~esm1UBUNTU-CVE-2026-54284 USN-8808-1
UbuntuPro:18.04:LTSsqlparse0.2.4-0.1ubuntu0.1+esm1UBUNTU-CVE-2026-54284 USN-8808-1
UbuntuPro:20.04:LTSsqlparse0.2.4-3ubuntu0.1+esm1UBUNTU-CVE-2026-54284 USN-8808-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 morepython3-sqlparse0.4.2-150300.23.1SUSE-SU-2026:3906-1
SUSELinux Enterprise Module for Package Hub 15 SP7python-sqlparse0.2.4-150100.6.11.1SUSE-SU-2026:3762-1
SUSELinux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5python-sqlparse0.4.4-150400.6.16.1SUSE-SU-2026:3910-1
SUSELinux Enterprise Module for Public Cloud 15 SP6, Linux Enterprise Module for Python 3 15 SP7, Linux Enterprise Server 15 SP6-LTSS and 1 morepython-sqlparse0.4.4-150600.3.9.1SUSE-SU-2026:3907-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0python-sqlparse0.5.3-160000.4.1SUSE-SU-2026:23561-1
openSUSELeap 16.0python-sqlparse0.5.3-160000.4.1openSUSE-SU-2026:21690-1
openSUSETumbleweedpython-sqlparse0.6.0-1.1openSUSE-SU-2026:11557-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an Important severity flaw because an unauthenticated remote attacker can trigger excessive CPU resource consumption and induce a denial-of-service condition using a small, crafted payload. The issue affects deployments where an exposed service directly submits untrusted, deeply nested SQL statements to parsing routines, leading to worker thread exhaustion and service unresponsiveness.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.5 for RHEL 8python3.12-sqlparse-0:0.6.0-1.el8apFixed 2026-09-23RHSA-2026:71114
Red Hat Ansible Automation Platform 2.5 for RHEL 9python3.12-sqlparse-0:0.6.0-1.el9apFixed 2026-09-23RHSA-2026:71114
Red Hat Ansible Automation Platform 2.6 for RHEL 10python-sqlparse-0:0.6.0-1.el10apFixed 2026-09-23RHSA-2026:71113
Red Hat Ansible Automation Platform 2.6 for RHEL 9python3.12-sqlparse-0:0.6.0-1.el9apFixed 2026-09-23RHSA-2026:71113
Red Hat Ansible Automation Platform 2.7 for RHEL 10python-sqlparse-0:0.6.0-1.el10apFixed 2026-09-23RHSA-2026:71112
Red Hat Ansible Automation Platform 2.7 for RHEL 9python3.12-sqlparse-0:0.6.0-1.el9apFixed 2026-09-23RHSA-2026:71112
Red Hat Satellite 6.16 for RHEL 8python-sqlparse-0:0.6.0-1.el8pcFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.16 for RHEL 9python-sqlparse-0:0.6.0-1.el9pcFixed 2026-10-01RHSA-2026:74506
Red Hat Satellite 6.17 for RHEL 9python-sqlparse-0:0.6.0-1.el9pcFixed 2026-10-01RHSA-2026:74505
Red Hat Satellite 6.18 for RHEL 9python3.12-sqlparse-0:0.6.0-1.el9pcFixed 2026-10-01RHSA-2026:74504
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/controller-rhel8Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/eda-controller-rhel8Not affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/hub-rhel8Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-24/lightspeed-rhel8Will not fix
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/ansible-dev-tools-rhel8Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/controller-rhel8Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-25/eda-controller-rhel8Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/ansible-dev-tools-rhel9Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/controller-rhel9Affected
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/aap-cloud-billing-rhel9Affected
225 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-54284.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON