CVE Tools

CVE-2023-30608

Parser contains an inefficient regular expression in sqlparse

CVE-2023-30608 affects Sqlparse Project Sqlparse (CVSS 5.5, Medium).

No known exploitation. EPSS puts it in the 67th percentile. Fixed in 0.4.4.

Check it yourself

OpenVAS · 13 checks

e.g. OID 1.3.6.1.4.1.25623.1.1.10.2023.0183

Run the check

Published Updated Sources: CVE.org, NVD, GitHub, BDU

What to do

Find your product and version, then upgrade to the build on the right.

  • Andialbrecht SqlparseAffected: >= 0.1.15, < 0.4.4Upgrade to: not statedStated by: CVE record
  • PyPI sqlparseAffected: ≥ 0.1.15, < 0.4.4Upgrade to: 0.4.4Stated by: GitHub advisory
  • Sqlparse Project SqlparseAffected: ≥ 0.1.15, < 0.4.4Upgrade to: 0.4.4Stated by: NVD
  • Novell Inc. SUSE Linux Enterprise Server for SAP ApplicationsAffected: 15 SP1Upgrade to: not statedAffected: 15 SP1-BCLUpgrade to: not statedStated by: BDU
  • Open-source community Debian GNU/LinuxAffected: 10Upgrade to: not statedStated by: BDU

Versions as the sources state them. 5 more products have version data. Full version matrix after sign-in

Check it yourselfA free OpenVAS check exists for this CVE. Run it against your hosts.
Is your organisation exposed?Request a free pilot to establish which checks fit your systems.

SeguriScan is made by IntruForce, a cybersecurity company in Madrid, Spain. Links open intruforce.com.

What it is

From the CVE record

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.

In plain language

No plain-language summary for this CVE yet.

Exploitation

Where each signal puts this CVE on the scale from published to confirmed exploited.

EPSS67th
CISA KEV

Not in the catalog. CISA has not confirmed exploitation.

Public exploits

No public exploit or proof of concept found in the sources we track.

EPSS

1.2% chance of exploitation activity in the next 30 days, which ranks it in the 67th percentile of scored CVEs.

Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.

Lifecycle

6 events over 1164 days, from the signal feeds we watch.

  1. OpenVAS check added
  2. Patch availablerecord updated
  3. Publishedweakness classified, att&ck mapped

Affected products

Technical detail

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Scored 5.5 by NVD.

How it is reached

  • Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
  • Attack Complexity LowNo special conditions — the attack can be reliably reproduced
  • Privileges Required NoneNo authentication required — anyone can exploit this
  • User Interaction RequiredA user must click a link, open a file, or perform some action

Scope

  • Scope UnchangedImpact is limited to the vulnerable component itself

Impact if exploited

  • Confidentiality NoneNo confidentiality impact
  • Integrity NoneNo integrity impact
  • Availability HighTotal denial of service — the component is completely unavailable

Weaknesses

ATT&CK techniques

Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.

Sources

Questions about CVE-2023-30608

Is CVE-2023-30608 being exploited?
No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 1.2%.
Which versions are affected by CVE-2023-30608?
Sqlparse: ≥ 0.1.15, < 0.4.4. Sqlparse: >= 0.1.15, < 0.4.4. Sqlparse: ≥ 0.1.15, < 0.4.4. 7 more products are listed in the record.
How do I fix or mitigate CVE-2023-30608?
Upgrade to 0.4.4 or later. The advisory is on github.com.

Last updated

Related articles

All articles

Watch the software you run.

My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.

We'll flag the next CVE, public exploit or patch for Sqlparse, not every advisory.