CVE-2026-71491: andialbrecht sqlparse Uncontrolled Resource Consumption
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 17% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 14 · Related 9Timeline
- 17-08-2026PublishedVulnerability first disclosed.
- 17-08-2026Last 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- OSV · PypiEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · UbuntuEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · WolfiEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- NVDNIST8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
17%
Versus all other CVEs
30-day change
0.00 pp
From 0.26% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-400Uncontrolled Resource ConsumptionThe product does not properly control the allocation and maintenance of a limited resource.
- CWE-407Inefficient Algorithmic ComplexityAn algorithm in a product has an inefficient worst-case computational complexity that may be detrimental to system performance and can be triggered by an attacker, typically using crafted manipulations that ensure that the worst case is being reached.
Affected systems
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
- sqlparse< 0.6.0
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- github.com/andialbrecht/sqlparse/security/advisories/GHSA-f2ff-p2ww-7p4pX Refsource CONFIRMWEBREPORTAdvisory
- github.com/andialbrecht/sqlparse/commit/ef2012a5eeb491e604dea2b00d516904a3830c87X Refsource MISCWEBFIX
- pypi.org/project/sqlparsePACKAGE