SQL Parsing Performance Degradation in Python Module by Andi Albrecht
CVE-2026-71491

8.7HIGH

Key Information:

Status
Vendor
CVE Published:
17 August 2026

What is CVE-2026-71491?

The sqlparse module, a non-validating SQL parser for Python, experienced a performance-related vulnerability. In versions prior to 0.6.0, the processing of comment-only SQL statements results in excessive CPU consumption due to repeated rescanning before reaching the MAX_GROUPING_TOKENS limit. This inefficiency can lead to degraded application performance when parsing SQL containing many comments. The issue has been resolved in version 0.6.0, emphasizing the importance of maintaining updated software.

Affected Version(s)

sqlparse < 0.6.0

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.