Skip to main content
VulnerabilityPublished Updated

CVE-2023-30608: andialbrecht sqlparse · ReDoS

Affects andialbrecht sqlparseSource CVE Database V5

0

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

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Apr 2023

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPIsqlparsepkg:pypi/sqlparseOther threatsAffected
  • <0.4.4
Fixed in
  • 0.4.4

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

Community reviews

Loading reviews…