CVE-2023-30608
In affected versions the SQL parser contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service).
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.98%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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 3.1
- 7.5 HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 0.98% probability · 60th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-1333
- Affected
- sqlparse project/sqlparse · debian/debian linux
- Source
- security-advisories@github.com
References
- https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfbPatch
- https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85aPatch
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2Patch, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2023/05/msg00017.htmlMailing List, Third Party Advisory
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoSTechnical Description
- https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfbPatch
- https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85aPatch
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2Patch, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2023/05/msg00017.htmlMailing List, Third Party Advisory
- https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoSTechnical Description
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.