CyberRota Analysis
AI-GeneratedThe sqlparse module for Python is vulnerable to a denial-of-service condition due to inefficient handling of comment-only statements, leading to excessive CPU consumption during parsing operations. This vulnerability can be exploited by attackers to degrade application performance significantly. Organizations using versions prior to 0.6.0 should prioritize upgrading to mitigate potential service disruptions.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.