Vulnerability Description
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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Sqlparse Project | Sqlparse | >= 0.1.15, < 0.4.4 |
| Debian | Debian Linux | 10.0 |
Related Weaknesses (CWE)
References
- https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafPatch
- https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2Patch
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2PatchVendor Advisory
- https://lists.debian.org/debian-lts-announce/2023/05/msg00017.htmlMailing ListThird Party Advisory
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_RTechnical Description
- https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafPatch
- https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2Patch
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2PatchVendor Advisory
- https://lists.debian.org/debian-lts-announce/2023/05/msg00017.htmlMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_RTechnical Description
FAQ
What is CVE-2023-30608?
CVE-2023-30608 is a vulnerability with a CVSS score of 5.5 (MEDIUM). 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 is...
How severe is CVE-2023-30608?
CVE-2023-30608 has been rated MEDIUM with a CVSS base score of 5.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2023-30608?
Check the references section above for vendor advisories and patch information. Affected products include: Sqlparse Project Sqlparse, Debian Debian Linux.