Skip to main content
← All vulnerabilities
CVE-2023-30608PYSEC-2023-87GHSA-RRM6-WVJ7-CWH2

Parser contains an inefficient regular expression in sqlparse

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.4.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • andialbrecht sqlparse

    From 0.1.15 · fixed in 0.4.4

  • sqlparsePyPI

    From 0.1.15 · fixed in 0.4.4

References 5

GitHub · andialbrecht/sqlparse

owasp.org

lists.debian.org