{"id":"CVE-2023-30608","summary":"Parser contains an inefficient regular expression in sqlparse","details":"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.","aliases":["GHSA-rrm6-wvj7-cwh2","PYSEC-2023-87"],"modified":"2026-04-16T04:31:20.968749695Z","published":"2023-04-18T21:32:11.145Z","related":["SUSE-RU-2024:1637-1","SUSE-RU-2024:1637-2","SUSE-RU-2024:1637-3","SUSE-SU-2023:2462-1","SUSE-SU-2023:2619-1","SUSE-SU-2023:2693-1","SUSE-SU-2023:2787-1","openSUSE-SU-2024:12957-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30608.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-1333"]},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html"},{"type":"WEB","url":"https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30608.json"},{"type":"ADVISORY","url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30608"},{"type":"FIX","url":"https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb"},{"type":"FIX","url":"https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/andialbrecht/sqlparse","events":[{"introduced":"4b7b0d3a01d8061572137f82a53de7365f3a241c"},{"fixed":"647d1457acf7d88614215841eb15d423df2a1895"}]}],"versions":["0.1.15","0.1.16","0.1.17","0.1.18","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.3.0","0.3.1","0.4.0","0.4.1","0.4.2","0.4.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-30608.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}