8.7

CVE-2026-71491: sqlparse: Quadratic O(n²) DoS in group_comments

Deferred
AliasesGHSA-f2ff-p2ww-7p4pPYSEC-2026-3697UBUNTU-CVE-2026-71491
Published 17-08-2026Last modified 17-08-2026

Vulnerability summary

CVE-2026-71491 is a high (CVSS 8.7) Uncontrolled Resource Consumption vulnerability in andialbrecht sqlparse. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 19.2% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
8.7/10
010
High · v4.0 (CVE.org)
EPSS score
0.26%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 14 · Related 9

Timeline

  1. 17-08-2026
    PublishedVulnerability first disclosed.
  2. 17-08-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.26%

Chance of exploitation in the next 30 days

Percentile

19%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.26% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard60 products
  • airflow-2< 2.11.2-r16
  • airflow-3< 3.3.1-r3
  • airflow-3-iamguarded-compatAll versions (No fix recorded)
  • airflow-core-2< 2.11.2-r7
  • apache-beam-python-3.14-sdk< 2.75.0-r2
Wolfi4 products
  • airflow-3< 3.3.1-r3
  • airflow-3-iamguarded-compatAll versions (No fix recorded)
  • mlflow< 3.16.0-r0 | < 3.15.1-r4
  • mycli< 2.16.0-r1
Andialbrecht1 product
Debian1 product
  • sqlparseAll versions (No fix recorded)
PyPI1 product
  • sqlparse< 0.6.0
Ubuntu1 product
  • sqlparse< 0.1.18-1ubuntu0.1~esm1 | < 0.2.4-0.1ubuntu0.1+esm1 | < 0.2.4-3ubuntu0.1+esm1 | < 0.4.2-1ubuntu0.22.04.3 | < 0.4.4-1ubuntu0.2 | < 0.5.4-1ubuntu0.1

6 vendors · 68 products

References

11 links
Show all 11 references