CVE-2023-30608

Parser contains an inefficient regular expression in sqlparse

HIGH
7.5
CVSS Score
Published: April 18, 2023 at 09:32 PM UTC
Updated: June 17, 2026 at 05:55 AM UTC
3 products affected across 3 vendorsDebian LinuxSqlparseSqlparse

Using sqlparse by andialbrecht?

Get instant alerts when new vulnerabilities affect sqlparse - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 1.0%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

0.1.15 ≤ v < 0.4.4
Affected range stops below 0.4.4, so it looks safe — our inference, not a vendor statement
v < 0.4.4
Affected range stops below 0.4.4, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1333

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card