CVE-2023-30608: Parser contains an inefficient regular expression in sqlparse

Published Apr 18, 2023
·
Updated

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

4 affected componentsFixes available
redhat/python-sqlparse<0.4.4
0.4.4
pip/sqlparse>=0.1.15<0.4.4
0.4.4
Sqlparse Project Sqlparse Python>=0.1.15<0.4.4
Debian Debian Linux=10.0

Event History

Apr 18, 2023
CVE Published
via MITRE·09:32 PM
Data Sourced
via MITRE·09:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 19, 2023
Data Sourced
via Red Hat·05:37 AM
DescriptionSeverityAffected Software
Apr 21, 2023
Advisory Published
via GitHub·08:24 PM

Frequently Asked Questions

1

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.

2

How do I fix CVE-2023-30608?

To mitigate CVE-2023-30608, update the affected software to version 0.4.4 or later.

3

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.

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203