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 (60.7th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 61st percentile — 60.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.010 · newest: 0.010 · change: 0.000
Affected products
- Andialbrecht Sqlparse — versions >= 0.1.15, < 0.4.4
- Sqlparse Project
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2 (Patch, Vendor Advisory)
- github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb (Patch)
- github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a (Patch)
- 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)
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2023-30608?
- CVE-2023-30608 is a medium-severity vulnerability in Andialbrecht Sqlparse, classified under Inefficient Regular Expression Complexity. CVSS score: 5.5/10. Published 2023-04-18.
- How severe is CVE-2023-30608?
- Medium severity. CVSS v3 base score is 5.5 out of 10.
- Is CVE-2023-30608 known to be exploited?
- 2 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.