CVE-2023-30608 Parser contains an inefficient regular expression in sqlparse
HighCVSS 7.5
EPSS 0.98%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/sqlparse(Debian 12) | < 0.4.2-1+deb12u1; = 0.4.2-1 | 0.4.2-1+deb12u1 | Fixed |
| debian/sqlparse(Debian 13) | < 0.4.4-1 | 0.4.4-1 | Fixed |
| debian/sqlparse(Debian 14) | < 0.4.4-1 | 0.4.4-1 | Fixed |
| pypi sqlparse(PyPI) | = 0.1.15; = 0.1.16; = 0.1.17; = 0.1.18 +13 more | 0.4.4 | Fixed |
| sqlparse project sqlparse | >= 0.1.15, < 0.4.4 | 0.4.4 | Fixed |
| ubuntu/sqlparse(Ubuntu 18.04) | < 0.2.4-0.1ubuntu0.1; = 0.2.2-1; = 0.2.4-0.1 | 0.2.4-0.1ubuntu0.1 | Fixed |
| ubuntu/sqlparse(Ubuntu 20.04) | < 0.2.4-3ubuntu0.1; = 0.2.4-1; = 0.2.4-1build1; = 0.2.4-2 +1 more | 0.2.4-3ubuntu0.1 | Fixed |
| ubuntu/sqlparse(Ubuntu 22.04) | < 0.4.2-1ubuntu0.22.04.1; = 0.4.1-1ubuntu1; = 0.4.2-1 | 0.4.2-1ubuntu0.22.04.1 | Fixed |
| andialbrecht sqlparse | = >= 0.1.15, < 0.4.4 | No fix listed | Versions listed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi sqlparse(PyPI) | >= 0.1.15, < 0.4.4 | 0.4.4 |
| pypi sqlparse(PyPI) | = 0.1.15 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.16 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.17 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.18 | No fix listed |
| pypi sqlparse(PyPI) | = 0.1.19 | No fix listed |
| pypi sqlparse(PyPI) | = 0.2.0 | No fix listed |
| pypi sqlparse(PyPI) | = 0.2.1 | No fix listed |
| pypi sqlparse(PyPI) | = 0.2.2 | No fix listed |
| pypi sqlparse(PyPI) | = 0.2.3 | No fix listed |
| pypi sqlparse(PyPI) | = 0.2.4 | No fix listed |
| pypi sqlparse(PyPI) | = 0.3.0 | No fix listed |
| pypi sqlparse(PyPI) | = 0.3.1 | No fix listed |
| pypi sqlparse(PyPI) | = 0.4.0 | No fix listed |
| pypi sqlparse(PyPI) | = 0.4.1 | No fix listed |
| pypi sqlparse(PyPI) | = 0.4.2 | No fix listed |
| pypi sqlparse(PyPI) | = 0.4.3 | No fix listed |
| debian/sqlparse(Debian:12) | < 0.4.2-1+deb12u1 | 0.4.2-1+deb12u1 |
| debian/sqlparse(Debian:12) | = 0.4.2-1 | No fix listed |
| debian/sqlparse(Debian:13) | < 0.4.4-1 | 0.4.4-1 |
| debian/sqlparse(Debian:14) | < 0.4.4-1 | 0.4.4-1 |
| andialbrecht sqlparse | = >= 0.1.15, < 0.4.4 | No fix listed |
| ubuntu/sqlparse(Ubuntu:22.04) | < 0.4.2-1ubuntu0.22.04.1 | 0.4.2-1ubuntu0.22.04.1 |
| sqlparse project sqlparse | >= 0.1.15, < 0.4.4 | 0.4.4 |
| debian linux | = 10.0 | No fix listed |
Show 10 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/sqlparse(Ubuntu:18.04) | < 0.2.4-0.1ubuntu0.1 | 0.2.4-0.1ubuntu0.1 |
| ubuntu/sqlparse(Ubuntu:18.04) | = 0.2.2-1 | No fix listed |
| ubuntu/sqlparse(Ubuntu:18.04) | = 0.2.4-0.1 | No fix listed |
| ubuntu/sqlparse(Ubuntu:20.04) | < 0.2.4-3ubuntu0.1 | 0.2.4-3ubuntu0.1 |
| ubuntu/sqlparse(Ubuntu:20.04) | = 0.2.4-1 | No fix listed |
| ubuntu/sqlparse(Ubuntu:20.04) | = 0.2.4-1build1 | No fix listed |
| ubuntu/sqlparse(Ubuntu:20.04) | = 0.2.4-2 | No fix listed |
| ubuntu/sqlparse(Ubuntu:20.04) | = 0.2.4-3 | No fix listed |
| ubuntu/sqlparse(Ubuntu:22.04) | = 0.4.1-1ubuntu1 | No fix listed |
| ubuntu/sqlparse(Ubuntu:22.04) | = 0.4.2-1 | No fix listed |
References
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2 issue-tracking patch vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb patch
- https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a patch
- github.com product
- github.com
- lists.debian.org mailing-list third-party-advisory
- lists.debian.org
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS issue-tracking technical-description
- Debian Security Tracker CVE-2023-30608 vendor-advisory
- github.com
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6064-1 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking