CyberRota Analysis
AI-GeneratedThe sqlparse module for Python is vulnerable to a denial-of-service condition due to inefficient handling of nested token subtrees, leading to excessive CPU consumption during parsing and formatting operations. This vulnerability can be exploited through the sqlparse.parse(), sqlparse.format(), and sqlparse.split() functions, potentially impacting applications that rely on this library for SQL parsing. Developers and organizations using sqlparse versions prior to 0.6.0 should prioritize upgrading to mitigate the risk of service disruption.
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, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by group_parenthesis and group_case, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split() before depth and token limits terminate processing. This issue is fixed in version 0.6.0.