Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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
ProductAffected versionsFixed 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