CVE-2026-59893: andialbrecht sqlparse
Vulnerability summary
CVE-2026-59893 is a high (CVSS 7.5) vulnerability in andialbrecht sqlparse. EPSS estimates a 0.34% chance of exploitation in the next 30 days, higher than 25.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 15 · 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, SQL_REGEX in sqlparse/keywords.py and the per-position loop in sqlparse/lexer.py repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This issue is fixed in version 0.6.0.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · WolfiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · ChainguardEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.34%
Chance of exploitation in the next 30 days
Percentile
26%
Versus all other CVEs
30-day change
+0.06 pp
From 0.28% 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 causeAffected 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.15.1-r4 | < 3.16.0-r0
- 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.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-prg7-hcfm-mfcrX Refsource CONFIRMWEBREPORTAdvisory
- github.com/andialbrecht/sqlparse/commit/d1d80602741f77ec78e5a04ce4719244cf32352eX Refsource MISCWEBFIX
- pypi.org/project/sqlparsePACKAGE