Logo
componentpython3-sqlparse
Name
python3-sqlparse
Version
0.4.2
Type
library
Description
-
Licenses
BSD-3-Clause
PURL
-
CPE
cpe:2.3:*:*:python3-sqlparse:0.4.2:*:*:*:*:*:*:*

Other Versions#


Project
Branch
Version
master
0.5.5
scarthgap
0.4.4

Patches#


#
Title
Author
Resolve
1
sqlparse: change shebang to python3
Changqing Li <changqing.li@windriver.com>
2
Remove unnecessary parts in regex for bad escaping.
Andi Albrecht <albrecht.andi@gmail.com>
CVE-2023-30608
3
Raise SQLParseError instead of RecursionError.
Andi Albrecht <albrecht.andi@gmail.com>
CVE-2024-4340

Vulnerabilities#


Name
Analysis
Description
Patched
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
Patched
sqlparse is a non-validating SQL parser module for Python. In affected versions the SQL parser contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service). This issue was introduced by commit `e75e358`. The vulnerability may lead to Denial of Service (DoS). This issues has been fixed in sqlparse 0.4.4 by commit `c457abd5f`. Users are advised to upgrade. There are no known workarounds for this issue.