Live threats

All CVEs / Sqlparse Project

CVE-2023-30608Sqlparse Project Sqlparse

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.2%
probability of exploitation in 30 days · percentile 67
Auth required
No
Published
Apr 18, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1333
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sqlparse.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI sqlparse ≥ 0.1.15 < 0.4.4 0.4.4 pip install "sqlparse>=0.4.4"
PyPI sqlparse ≥ 0.1.15 < 0.4.4 0.4.4 pip install "sqlparse>=0.4.4"

Per OSV / GitHub Advisories (GHSA-rrm6-wvj7-cwh2, PYSEC-2023-87). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
sqlparse_projectsqlparse≥ 0.1.15 < 0.4.4
debiandebian_linux10.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.