CVSS 4.0
8.7 highCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NHigh (8.7) in andialbrecht sqlparse. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in sqlparse 0.6.0.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:Nsqlparse (PyPI): fixed in 0.6.0Explain CVE-2026-71491 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-71491?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-71491?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-71491 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| andialbrecht sqlparse | < 0.6.0 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-f2ff-p2ww-7p4p | PyPI | sqlparse | <0.6.0 | 0.6.0 |
| PYSEC-2026-3697 | PyPI | sqlparse | <0.6.0 | 0.6.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | sqlparse | no fix listed | DEBIAN-CVE-2026-71491 |
| Ubuntu | 22.04:LTS | sqlparse | 0.4.2-1ubuntu0.22.04.3 | UBUNTU-CVE-2026-71491 USN-8808-1 |
| Ubuntu | 24.04:LTS | sqlparse | 0.4.4-1ubuntu0.2 | UBUNTU-CVE-2026-71491 USN-8808-1 |
| Ubuntu | 26.04:LTS | sqlparse | 0.5.4-1ubuntu0.1 | UBUNTU-CVE-2026-71491 USN-8808-1 |
| Ubuntu | Pro:16.04:LTS | sqlparse | 0.1.18-1ubuntu0.1~esm1 | UBUNTU-CVE-2026-71491 USN-8808-1 |
| Ubuntu | Pro:18.04:LTS | sqlparse | 0.2.4-0.1ubuntu0.1+esm1 | UBUNTU-CVE-2026-71491 USN-8808-1 |
| Ubuntu | Pro:20.04:LTS | sqlparse | 0.2.4-3ubuntu0.1+esm1 | UBUNTU-CVE-2026-71491 USN-8808-1 |
| SUSE | Linux 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 more | python3-sqlparse | 0.4.2-150300.23.1 | SUSE-SU-2026:3906-1 |
| SUSE | Linux Enterprise Module for Package Hub 15 SP7 | python-sqlparse | 0.2.4-150100.6.11.1 | SUSE-SU-2026:3762-1 |
| SUSE | Linux Enterprise Module for Public Cloud 15 SP4, Linux Enterprise Module for Public Cloud 15 SP5 | python-sqlparse | 0.4.4-150400.6.16.1 | SUSE-SU-2026:3910-1 |
| SUSE | Linux Enterprise Module for Public Cloud 15 SP6, Linux Enterprise Module for Python 3 15 SP7, Linux Enterprise Server 15 SP6-LTSS and 1 more | python-sqlparse | 0.4.4-150600.3.9.1 | SUSE-SU-2026:3907-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | python-sqlparse | 0.5.3-160000.4.1 | SUSE-SU-2026:23561-1 |
| openSUSE | Leap 16.0 | python-sqlparse | 0.5.3-160000.4.1 | openSUSE-SU-2026:21690-1 |
| openSUSE | Tumbleweed | python-sqlparse | 0.6.0-1.1 | openSUSE-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 rates this Important.
A flaw was found in sqlparse, a non-validating SQL parser module for Python, and is rated by Red Hat as having IMPORTANT severity (CVSS 3.1 base score of 7.5). The group_comments function in sqlparse/engine/grouping.py repeatedly rescans comment-only statements before the MAX_GROUPING_TOKENS guard is applied, so SQL input containing numerous comment-only statements causes quadratic CPU consumption when processed through sqlparse.parse() or sqlparse.format(sql, strip_comments=True). A remote attacker who can supply specially crafted SQL input to an application that parses it with sqlparse could exploit this flaw to cause excessive CPU consumption, resulting in a denial of service of the application; confidentiality and integrity are not affected. This flaw affects Red Hat products that ship the vulnerable sqlparse package, including Red Hat OpenStack Platform, Red Hat OpenShift Container Platform, Ansible Automation Platform, Red Hat OpenShift AI, and other offerings; a fix is being pursued by the responsible product teams (delegated resolution). The upstream record assigns a CVSS 4.0 score of 8.7, while Red Hat's CVSS 3.1 score is 7.5; both ratings are IMPORTANT and reflect availability-only impact, with the numeric difference stemming from the CVSS version used.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | python3.12-sqlparse-0:0.6.0-1.el8ap | Fixed 2026-09-23 | RHSA-2026:71114 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | python3.12-sqlparse-0:0.6.0-1.el9ap | Fixed 2026-09-23 | RHSA-2026:71114 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 10 | python-sqlparse-0:0.6.0-1.el10ap | Fixed 2026-09-23 | RHSA-2026:71113 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | python3.12-sqlparse-0:0.6.0-1.el9ap | Fixed 2026-09-23 | RHSA-2026:71113 |
| Red Hat Ansible Automation Platform 2.7 for RHEL 10 | python-sqlparse-0:0.6.0-1.el10ap | Fixed 2026-09-23 | RHSA-2026:71112 |
| Red Hat Ansible Automation Platform 2.7 for RHEL 9 | python3.12-sqlparse-0:0.6.0-1.el9ap | Fixed 2026-09-23 | RHSA-2026:71112 |
| Red Hat Satellite 6.17 for RHEL 9 | python-sqlparse-0:0.6.0-1.el9pc | Fixed 2026-10-01 | RHSA-2026:74505 |
| Red Hat Satellite 6.18 for RHEL 9 | python3.12-sqlparse-0:0.6.0-1.el9pc | Fixed 2026-10-01 | RHSA-2026:74504 |
| Red Hat Satellite 6.19 for RHEL 9 | python3.12-sqlparse-0:0.6.0-1.el9pc | Fixed 2026-10-01 | RHSA-2026:74503 |
| Red Hat Ansible Automation Platform 2.2 | ansible-automation-platform/bootc-automation-portal-rhel9:1791865660 | Fixed 2026-10-13 | RHSA-2026:82151 |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/controller-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/eda-controller-rhel8 | Not affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/hub-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-24/lightspeed-rhel8 | Will not fix | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/ansible-dev-tools-rhel8 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/controller-rhel8 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-25/eda-controller-rhel8 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/ansible-dev-tools-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-26/controller-rhel9 | Affected | |
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/aap-cloud-billing-rhel9 | Affected | |
| 297 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-71491.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.