SecurityContext

CVE-2023-30608: sqlparse - Regular Expression Denial of Service

  • Cve: CVE-2023-30608
  • Name: sqlparse - Regular Expression Denial of Service
  • 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.
  • Impact: Attackers can cause denial of service by exploiting the regex vulnerability, leading to application slowdown or crash.
  • Remediation: Upgrade to version 0.4.4 or later.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.0098
  • Epss percentile: 0.62943
  • Assignee: [email protected]
  • Published at: 2023-04-18T22:15:08Z
  • Age in days: 1316
  • Modified at: 2026-06-17T05:55:07Z
  • Patch available: yes
  • References total: 6
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-30608
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-1333Inefficient Regular Expression Complexity

Hackerone

  • Reports: 1
  • Rank: 5211

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfbPatch
https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85aPatch
https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2Patch, Vendor Advisory
https://lists.debian.org/debian-lts-announce/2023/05/msg00017.htmlMailing List, Third Party Advisory
https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoSTechnical Description
https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html

Products

ProductAffectedPlatform boundSourcesUrl
sqlparse_project:sqlparse>= 0.1.15, < 0.4.4nonvd/v1/products/sqlparse_project/sqlparse
debian:debian_linux= 10.0nonvd/v1/products/debian/debian_linux

Projects

RepositoryLink kindsIndexedUrl
andialbrecht/sqlparsecommit, package, security_advisoryyes/v1/repositories/andialbrecht/sqlparse

Index

  • Repositories: 93
  • Repositories high signal: 45
  • Packages: 1

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since