7.5
HIGH
CVE-2023-30608
Apache sqlparse Regular Expression Denial of Service (ReDoS)
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.

INFO

Published Date :

April 18, 2023, 10:15 p.m.

Last Modified :

Nov. 21, 2024, 8 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Public PoC/Exploit Available at Github

CVE-2023-30608 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2023-30608 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Debian debian_linux
1 Sqlparse_project sqlparse

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

A centralized repository of standalone security patches for open source libraries.

appsec backport cve devsecops fix hotfix open-source patch protection remediation seal security update upgrade vulnerability

Updated: 5 months, 3 weeks ago
182 stars 0 fork 0 watcher
Born at : July 30, 2023, 4:46 p.m. This repo has been linked 265 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2023-30608 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2023-30608 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb
    Added Reference https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a
    Added Reference https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2
    Added Reference https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html
    Added Reference https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Jun. 14, 2023

    Action Type Old Value New Value
    Changed Reference Type https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a Product https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a Patch
    Changed Reference Type https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2 Vendor Advisory https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2 Patch, Vendor Advisory
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html No Types Assigned https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html Mailing List, Third Party Advisory
    Changed Reference Type https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS Not Applicable https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS Technical Description
    Added CWE NIST CWE-1333
    Changed CPE Configuration OR *cpe:2.3:a:sqlparse_project:sqlparse:*:*:*:*:*:python:*:* versions from (including) 0.1.15 up to (including) 0.4.4 OR *cpe:2.3:a:sqlparse_project:sqlparse:*:*:*:*:*:python:*:* versions from (including) 0.1.15 up to (excluding) 0.4.4
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    May. 16, 2023

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html [No Types Assigned]
  • Initial Analysis by [email protected]

    Apr. 28, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Changed Reference Type https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb No Types Assigned https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb Patch
    Changed Reference Type https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a No Types Assigned https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a Product
    Changed Reference Type https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2 No Types Assigned https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2 Vendor Advisory
    Changed Reference Type https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS No Types Assigned https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS Not Applicable
    Added CPE Configuration OR *cpe:2.3:a:sqlparse_project:sqlparse:*:*:*:*:*:python:*:* versions from (including) 0.1.15 up to (including) 0.4.4
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2023-30608 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2023-30608 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.17 }} 0.04%

score

0.54173

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability