7.5

CVE-2023-30608: Parser contains an inefficient regular expression in sqlparse

Modified
AliasesMGASA-2023-0183SUSE-RU-2024:1637-1SUSE-RU-2024:1637-2
Published 18-04-2023Last modified 03-11-2025

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.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.98%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 4 · Related 1

Timeline

  1. 18-04-2023
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
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
Show all 24 references