Inefficient Regular Expression Complexity Affecting python3-sqlparse package, versions <0.4.2-150300.3.6.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.17% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Inefficient Regular Expression Complexity vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-SLES153-PYTHON3SQLPARSE-5735725
  • published24 Jun 2023
  • disclosed23 Jun 2023

Introduced: 23 Jun 2023

CVE-2023-30608  (opens in a new tab)
CWE-1333  (opens in a new tab)

How to fix?

Upgrade SLES:15.3 python3-sqlparse to version 0.4.2-150300.3.6.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python3-sqlparse package and not the python3-sqlparse package as distributed by SLES. See How to fix? for SLES:15.3 relevant fixed versions and status.

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 Scores

version 3.1