SQL Parsing Vulnerability in sqlparse Module Affecting Python Applications
CVE-2026-84305
5.1MEDIUM
What is CVE-2026-84305?
The sqlparse module for Python, prior to version 0.6.0, contains a vulnerability that can lead to excessive CPU consumption when processing certain SQL queries with nested parenthesized tuple lists. The vulnerability arises from the handling of reindentation, where inefficient offset calculations on an expanding token tree may cause significant request delays or worker starvation. This issue is addressed in version 0.6.0, which optimizes the handling of these inputs to prevent performance degradation.
Affected Version(s)
sqlparse < 0.6.0
