CVE-2023-30608 MEDIUM

CVE-2023-30608: Parser contains an inefficient regular expression in sqlparse

Vendor Andialbrecht
Product sqlparse
Weakness CWE-1333
Published April 18, 2023
Last update November 3, 2025

CVSS base score

5.5/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction Required
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 18, 2023 CVE published
November 3, 2025 Record updated