CVE-2023-30608

Medium

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductSqlparse
PublishedApr 18, 2023
First seenApr 18, 2023
Weakness typeCWE-1333CWE-1333

How to fix

Update
  • sqlparse_project sqlparse0.4.4 or later
  • sqlparse0.4.4 or later

Affected products

ProductAffected versionsFixed in
sqlparse_project sqlparse0.1.15 ≤ v < 0.4.40.4.4
debian debian_linux10.0—
sqlparsePyPI0.1.15 ≤ v < 0.4.40.4.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2023-30608 · Sqlparse · Dark Radar