CVE-2023-30608: Parser contains an inefficient regular expression in sqlparse
Impact The SQL parser contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service). The vulnerability may lead to Denial of Service (DoS).
Patches This issues has been fixed in sqlparse 0.4.4.
Workarounds None.
References This issue was discovered and reported by GHSL team member @erik-krogh (Erik Krogh Kristensen). - Commit that introduced the vulnerability: e75e35869473832a1eb67772b1adfee2db11b85a
Other sources
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.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2023-30608?
CVE-2023-30608 is classified as a Denial of Service (DoS) vulnerability due to the risk posed by a vulnerable regular expression in the SQL parser.
How do I fix CVE-2023-30608?
To mitigate CVE-2023-30608, update the affected software to version 0.4.4 or later.
Which software is affected by CVE-2023-30608?
CVE-2023-30608 affects python-sqlparse versions prior to 0.4.4 and sqlparse versions from 0.1.15 to below 0.4.4.
What type of attack does CVE-2023-30608 enable?
CVE-2023-30608 enables a Regular Expression Denial of Service (ReDoS) attack, potentially leading to application downtime.
Is there a known fix for CVE-2023-30608 in Debian?
Yes, for Debian, ensure that you are running version 10.0 or higher to mitigate CVE-2023-30608.