VDB

CVE-2026-71491

CVE-2026-71491 PUBLISHED CVSS 8.7 HIGH

sqlparse: Quadratic O(n²) DoS in group_comments

Reported by github_m · Published August 17, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
openstack-nova-2025.1Chainguard31.3.0_git20260717-r4
openstack-keystone-2025.1-fipsChainguard27.0.1_git20260811-r1
datahub-ingestionChainguard1.7.0-r2
pgadmin4Chainguard9.17-r1
openstack-placement-2025.2-fipsChainguard14.0.0_git20260309-r9
dbt-coreChainguard1.12.3-r0
openstack-horizon-2026.1Chainguard25.7.3_git20260814-r1
openstack-horizon-2025.1Chainguard25.3.2_git20260617-r8
openstack-glance-2026.1Chainguard32.0.0_git20260805-r1
authentik-2026.5Chainguard2026.5.6-r9
airflow-3Wolfi3.3.1-r3
openstack-horizon-2025.2Chainguard25.5.2_git20260812-r1

17 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
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

Affected products

VendorProductVersions
andialbrechtsqlparse< 0.6.0
chainguardopenstack-nova-2025.10
chainguardopenstack-keystone-2025.1-fips0
chainguarddatahub-ingestion0
chainguardpgadmin40
chainguardopenstack-placement-2025.2-fips0
chainguarddbt-core0
chainguardopenstack-horizon-2026.10
chainguardopenstack-horizon-2025.10
chainguardopenstack-glance-2026.10
chainguardauthentik-2026.50
wolfiairflow-30
chainguardopenstack-horizon-2025.20
chainguardopenstack-glance-2025.2-fips0
chainguardauthentik-fips-2025.120
chainguardairflow-core-20
chainguardauthentik-fips-2026.20
chainguardopenstack-placement-2026.10
chainguardsuperset-5.00
chainguardopenstack-placement-2025.1-fips0

…and 37 more

Timeline

  • Aug 17, 2026 CVE Published
  • Aug 24, 2026 EPSS Score (22 in total, the first dated here)
  • Sep 5, 2026 Security Advisory (5 in total, the first dated here)
  • Sep 24, 2026 Distribution Patch (4 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-71491
vulnetix vdb fixes CVE-2026-71491

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-71491/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›