CVE-2023-30608: andialbrecht sqlparse · ReDoS
Affects andialbrecht sqlparseSource CVE Database V5
Not known to be exploited · CVSS 5.5 Medium : upgrade to 0.4.4 when convenient.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 0.9% chance of exploitation in 30 days – higher than 61% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.4.4
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 18 Apr 2023
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade andialbrecht sqlparse to 0.4.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIsqlparsepkg:pypi/sqlparseOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2023-30608, European organizations should immediately upgrade all instances of sqlparse to version 0.4.4 or later, where the vulnerability is fixed. Conduct a thorough inventory of Python applications and services to identify usage of sqlparse and verify the version in use. For environments where upgrading is not immediately feasible, consider implementing input validation and sanitization to limit exposure to maliciously crafted SQL inputs that could trigger the ReDoS condition. Monitor application performance and logs for unusual CPU spikes or slowdowns during SQL parsing operations. Employ runtime application self-protection (RASP) or Web Application Firewalls (WAFs) where applicable to detect and block suspicious input patterns. Additionally, incorporate this vulnerability into vulnerability management and patching workflows to ensure timely updates. Educate developers and DevOps teams about the risks of ReDoS and the importance of using updated dependencies.
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.
References
- github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2 (opens in a new tab)
- github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb (opens in a new tab)
- github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a (opens in a new tab)
- owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS (opens in a new tab)
- lists.debian.org/debian-lts-announce/2023/05/msg00017.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2024/12/msg00022.html (opens in a new tab)