CVE-2023-30608: Parser contains an inefficient regular expression in sqlparse
Vulnerability summary
CVE-2023-30608 is a high (CVSS 7.5) vulnerability in andialbrecht sqlparse. EPSS estimates a 0.98% chance of exploitation in the next 30 days, higher than 62.2% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 4 · Related 1Timeline
- 18-04-2023PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
- OSV · PypiEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.98%
Chance of exploitation in the next 30 days
Percentile
62%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.98% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Opensuse98 products
- libcrc32c&distro=openSUSE Leap 15.5< 1.1.2-150400.9.3.1
- libcrc32c&distro=openSUSE Leap 15.6< 1.1.2-150400.9.3.1
- protobuf&distro=openSUSE Leap 15.5< 25.1-150400.9.6.1
- protobuf&distro=openSUSE Leap Micro 5.3< 25.1-150400.9.6.1
- protobuf&distro=openSUSE Leap Micro 5.4< 25.1-150400.9.6.1
Suse96 products
- libcrc32c&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP4< 1.1.2-150400.9.3.1
- libcrc32c&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP5< 1.1.2-150400.9.3.1
- libcrc32c&distro=SUSE Linux Enterprise Module for Public Cloud 15 SP6< 1.1.2-150400.9.3.1
- protobuf&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 25.1-150400.9.6.1
- protobuf&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 25.1-150400.9.6.1
Debian2 products
- sqlparse< 0.2.4-1+deb10u1 | < 0.4.2-1+deb12u1 | < 0.4.4-1
- debian_linuxEOL10.0
Andialbrecht1 product
- sqlparse≥ 0.1.15, < 0.4.4
Mageia1 product
- python-sqlparse< 0.3.1-1.1.mga8
PyPI1 product
- sqlparse< e75e35869473832a1eb67772b1adfee2db11b85a | ≥ 0.1.15, < 0.4.4
Ubuntu1 product
- sqlparse< 0.2.4-0.1ubuntu0.1 | < 0.2.4-3ubuntu0.1 | < 0.4.2-1ubuntu0.22.04.1
7 vendors · 200 products · Showing 200 of 350
References
24 links- github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2X Refsource CONFIRMWEBAdvisoryREPORTPatchVendor Advisory
- github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfbX Refsource MISCWEBFIXPatch
- github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85aX Refsource MISCWEBFIXPatch
- owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoSX Refsource MISCWEBREPORTTechnical Description