VDB

CVE-2023-30608

CVE-2023-30608 PUBLISHED CVSS 5.5 MEDIUM

Parser contains an inefficient regular expression in sqlparse

Reported by github_m · Published April 18, 2023

sqlparse is fixed in c457abd5f097dd13fb21543381e7cfafe7d31cfb and 0.4.4 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
sqlparsePyPIc457abd5f097dd13fb21543381e7cfafe7d31cfb, 0.4.4

Risk scores

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

Affected products

VendorProductVersions
andialbrechtsqlparse>= 0.1.15, < 0.4.4
andialbrechtsqlparse0.1.15
PyPIsqlparse0.1.15

Timeline

  • Apr 18, 2023 CVE Published
  • Apr 19, 2023 EPSS Score (30 in total, the first dated here)
  • Nov 4, 2025 CVE Updated
  • Mar 10, 2026 Security Advisory (2 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2023-30608
vulnetix vdb fixes CVE-2023-30608

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-30608/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›