CVE-2023-30608Sqlparse Project Sqlparse
High 7.5 No auth needed
Follow: this CVE · Sqlparse Project · Sqlparse Project Sqlparse We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Sqlparse.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| sqlparse_project | sqlparse | ≥ 0.1.15 < 0.4.4 |
| debian | debian_linux | 10.0 |
Official advisories
- python313-sqlparse-0.5.5-2.1 on GA media · SUSE · openSUSE-SU-2026:11221-1 · Jul 8, 2026 High
- Red Hat Security Advisory: Satellite 6.14 security and bug fix update · Red Hat · RHSA-2023:6818 · Oct 2, 2024 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Patch Vendor Advisory
- lists.debian.org Mailing List Third Party Advisory
- owasp.org Technical Description
- lists.debian.org