CVE-2023-30608
Published: 18 April 2023
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.
Priority
Status
Package | Release | Status |
---|---|---|
sqlparse Launchpad, Ubuntu, Debian |
trusty |
Ignored
(end of standard support)
|
xenial |
Not vulnerable
(code not present)
|
|
bionic |
Released
(0.2.4-0.1ubuntu0.1)
|
|
focal |
Released
(0.2.4-3ubuntu0.1)
|
|
jammy |
Released
(0.4.2-1ubuntu0.22.04.1)
|
|
kinetic |
Released
(0.4.2-1ubuntu0.22.10.1)
|
|
upstream |
Released
(0.4.4)
|
|
lunar |
Released
(0.4.2-1ubuntu0.23.04.1)
|
|
Patches: upstream: https://github.com/andialbrecht/sqlparse/commit/c457abd5f upstream: https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 7.5 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | None |
User interaction | None |
Scope | Unchanged |
Confidentiality | None |
Integrity impact | None |
Availability impact | High |
Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
References
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-30608
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
- https://ubuntu.com/security/notices/USN-6064-1
- NVD
- Launchpad
- Debian