{"id":"PYSEC-2023-87","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.\n","aliases":["CVE-2023-30608","GHSA-rrm6-wvj7-cwh2"],"modified":"2023-11-08T04:12:25.842993Z","published":"2023-04-18T22:15:00Z","references":[{"type":"ADVISORY","url":"https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2"},{"type":"WEB","url":"https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS"},{"type":"FIX","url":"https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb"},{"type":"FIX","url":"https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html"}],"affected":[{"package":{"name":"sqlparse","ecosystem":"PyPI","purl":"pkg:pypi/sqlparse"},"ranges":[{"type":"GIT","repo":"https://github.com/andialbrecht/sqlparse","events":[{"introduced":"0"},{"fixed":"c457abd5f097dd13fb21543381e7cfafe7d31cfb"},{"fixed":"e75e35869473832a1eb67772b1adfee2db11b85a"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0.1.15"},{"fixed":"0.4.4"}]}],"versions":["0.1.15","0.1.16","0.1.17","0.1.18","0.1.19","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://github.com/pypa/advisory-database/blob/main/vulns/sqlparse/PYSEC-2023-87.yaml"}}],"schema_version":"1.7.3"}