Breaking: Ruby2Shell - Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2026-71491

sqlparse: sqlparse: Denial of Service via quadratic CPU consumption in comment grouping

Overview

Published
17 Aug 2026
Modified
23 Oct 2026
High CVE
3 Registry packages
217 OS packages
10 Linux distributions
Yes Fix available

Description

sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, group_comments in sqlparse/engine/grouping.py repeatedly rescans comment-only statements before the MAX_GROUPING_TOKENS guard, causing quadratic CPU consumption through sqlparse.parse() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.

Source: OX vulnerability database

Severity

7.5 · HIGH

CVSS 3.1 base score, scored by redhat.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weakness: CWE-400, CWE-407

Affected packages · 3

Packages affected by CVE-2026-71491
EcosystemPackageVulnerableFixed in
PyPI sqlparse <0.6.0 0.6.0
Seal PyPI seal-sqlparse >=0.4.3+sp1, <0.4.3+sp999>=0.4.4+sp1, <0.4.4+sp999 0.4.3+sp9990.4.4+sp999
Seal PyPI sqlparse >=0.4.3+sp0, <0.4.3+sp999>=0.4.4+sp0, <0.4.4+sp999 0.4.3+sp9990.4.4+sp999

Open a package to see all its vulnerabilities.

Operating systems · 77 fixes

Red Hat 3 releases · 1 package

affected 3
openshift4-ose-ironic-rhel9
Red Hat fixes for CVE-2026-71491
ReleasePackageFixed in
7 openshift4-ose-ironic-rhel9 +2 affected
8 openshift4-ose-ironic-rhel9 +82 affected
9 openshift4-ose-ironic-rhel9 +75 affected

SUSE Linux Enterprise 5 releases · 4 packages

fixed 10
python3-sqlparse python311-sqlparse python2-sqlparse python313-sqlparse
SUSE Linux Enterprise fixes for CVE-2026-71491
ReleasePackageFixed inAdvisory
15.4 python3-sqlparse 0.4.2-150300.23.1 SUSE-SU-2026:3906-1
15.4 python311-sqlparse 0.4.4-150400.6.16.1 SUSE-SU-2026:3910-1
15.5 python3-sqlparse 0.4.2-150300.23.1 SUSE-SU-2026:3906-1
15.5 python311-sqlparse 0.4.4-150400.6.16.1 SUSE-SU-2026:3910-1
15.6 python3-sqlparse 0.4.2-150300.23.1 SUSE-SU-2026:3906-1
15.6 python311-sqlparse 0.4.4-150600.3.9.1 SUSE-SU-2026:3907-1

4 more rows

chainguard 1 release · 46 packages

fixed 46
dbt-bigquery dbt-core label-studio datahub-ingestion openstack-placement-2025-1-fips openstack-placement-2025-1 +40
chainguard fixes for CVE-2026-71491
ReleasePackageFixed in
dbt-bigquery 1.10.3-r8
dbt-core 1.12.3-r0
label-studio 1.23.0-r12
datahub-ingestion +1 1.7.0-r2
openstack-placement-2025-1-fips 13.0.0_git20260720-r2
openstack-placement-2025-1 13.0.0_git20260720-r3

40 more rows

debian 4 releases · 1 package

affected 4
sqlparse
debian fixes for CVE-2026-71491
ReleasePackageFixed in
11 sqlparse affected
12 sqlparse affected
13 sqlparse affected
14 sqlparse affected

echo 1 release · 1 package

affected 1
sqlparse
echo fixes for CVE-2026-71491
ReleasePackageFixed in
sqlparse affected

minimos 1 release · 4 packages

fixed 4
py3-sqlparse label-studio mlflow airflow-3
minimos fixes for CVE-2026-71491
ReleasePackageFixed in
py3-sqlparse 0.6.0-r0
label-studio 1.23.1-r0
mlflow 3.15.2-r0
airflow-3 3.3.2-r0

openSUSE 1 release · 1 package

fixed 1
python313-sqlparse
openSUSE fixes for CVE-2026-71491
ReleasePackageFixed inAdvisory
Tumbleweed python313-sqlparse +1 0.6.0-1.1 openSUSE-SU-2026:11557-1

openSUSE Leap 1 release · 1 package

fixed 1
python313-sqlparse
openSUSE Leap fixes for CVE-2026-71491
ReleasePackageFixed inAdvisory
16.0 python313-sqlparse 0.5.3-160000.4.1 openSUSE-SU-2026:21690-1

ubuntu 5 releases · 1 package

fixed 5
sqlparse
ubuntu fixes for CVE-2026-71491
ReleasePackageFixed in
18.04-ESM sqlparse 0.2.4-0.1ubuntu0.1+esm1
20.04-ESM sqlparse 0.2.4-3ubuntu0.1+esm1
22.04 sqlparse 0.4.2-1ubuntu0.22.04.3
24.04 sqlparse 0.4.4-1ubuntu0.2
26.04 sqlparse 0.5.4-1ubuntu0.1

wolfi 1 release · 2 packages

fixed 2
mycli airflow-3
wolfi fixes for CVE-2026-71491
ReleasePackageFixed in
mycli 2.16.0-r1
airflow-3 3.3.1-r3

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.