CVE-2026-84305
Last modified
CVE-2026-84305 is a medium-severity vulnerability rated 5.1/10 on the CVSS scale. sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly rebuilds and joins the statement prefix. EPSS estimates a 0.13% chance of exploitation in the next 30 days.
Description
sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse.format(sql, reindent=True) and sqlformat --reindent route attacker-controlled parenthesized tuple lists through ReindentFilter._get_offset() in sqlparse/filters/reindent.py, where _flatten_up_to_token() repeatedly rebuilds and joins the statement prefix. Thousands of offset calculations walk an expanding token tree, producing quadratic CPU consumption for inputs that remain below MAX_GROUPING_TOKENS and causing request delays, reduced throughput, or worker starvation. This issue is fixed in version 0.6.0.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| andialbrecht | sqlparse | < 0.6.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-84305?
How severe is CVE-2026-84305?
How do I fix CVE-2026-84305?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-84298Hatchet is a platform for orchestrating background tasks, AI…3.1
- CVE-2026-8430SPIP versions prior to 4.4.14 contain a remote code executio…9.2
- CVE-2026-84301FastGPT is an open-source LLM platform for building AI appli…6.3
- CVE-2026-84302Discourse is an open-source discussion platform. Prior to 20…4.2
- CVE-2026-84303gRPC-Go is the Go language implementation of gRPC. Prior to …6.3
- CVE-2026-84304gRPC-Go is the Go language implementation of gRPC. Prior to …8.7
- CVE-2026-84306Filament is a collection of full-stack components for accele…6.5
- CVE-2026-84307Filament is a collection of full-stack components for accele…3.7
- CVE-2026-84308phpseclib is a PHP secure communications library. Prior to 3…6.3
- CVE-2026-84309pypdf is a free and open-source pure-python PDF library. Pri…5.5
- CVE-2026-8431An administrative user with access to configure webhooks can…7.2
- CVE-2026-84310pypdf is a free and open-source pure-python PDF library. Pri…3.3
Are you affected by CVE-2026-84305?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
