Vulnerability in Andialbrecht Sqlparse
CVE-2023-30608
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.
Vulnerability class: ReDoS (Regular Expression Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.010, 62.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Andialbrecht Sqlparse — versions >= 0.1.15, < 0.4.4
- Sqlparse Project
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (ARPSyndicate/cvemon, seal-community/patches). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2 (Patch, Vendor Advisory)
- https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb (Patch)
- https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a (Patch)
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS (Technical Description)
- lists.debian.org/debian-lts-announce/2023/05/msg00017.html (Mailing List, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2024/12/msg00022.html