cve.bz

CVE-2023-30608

7.5 highEPSS 1.0%Fix available

High (7.5). EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in sqlparse 0.4.4.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 63rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-02-06. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1333 Inefficient Regular Expression Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-30608 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-30608?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-30608?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-30608 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sqlparse_project:sqlparsefrom 0.1.15 before 0.4.4
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rrm6-wvj7-cwh2PyPIsqlparse>=0.1.15 <0.4.40.4.4
PYSEC-2023-87PyPIsqlparse>=0.1.15 <0.4.40.4.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10sqlparse0.2.4-1+deb10u1DLA-3425-1
Debian11sqlparse0.4.1-1+deb11u1DLA-4000-1
Debian12sqlparse0.4.2-1+deb12u1DEBIAN-CVE-2023-30608
Debian13, 14sqlparse0.4.4-1DEBIAN-CVE-2023-30608
Ubuntu18.04:LTSsqlparse0.2.4-0.1ubuntu0.1UBUNTU-CVE-2023-30608 USN-6064-1
Ubuntu20.04:LTSsqlparse0.2.4-3ubuntu0.1UBUNTU-CVE-2023-30608 USN-6064-1
Ubuntu22.04:LTSsqlparse0.4.2-1ubuntu0.22.04.1UBUNTU-CVE-2023-30608 USN-6064-1
Red Hatrhui:4::el8python-django, python39-django0:3.2.19-1.0.1.el8uiRHSA-2023:4591
Red Hatrhui:4::el8python-sqlparse, python39-sqlparse0:0.4.4-1.0.1.el8uiRHSA-2023:4591
Red Hatsatellite:6.14::el8foreman, foreman-cli, foreman-ec2 and 11 more0:3.7.0.9-1.el8satRHSA-2023:6818
Red Hatsatellite:6.14::el8rubygem-actionpack, rubygem-activerecord, rubygem-activesupport0:6.1.7.3-1.el8satRHSA-2023:6818
Red Hatsatellite:6.14::el8rubygem-git0:1.18.0-1.el8satRHSA-2023:6818
Red Hatsatellite:6.14::el8rubygem-globalid0:1.1.0-1.el8satRHSA-2023:6818
Red Hatsatellite:6.14::el8rubygem-kubeclient0:4.10.1-1.el8satRHSA-2023:6818
Red Hatsatellite:6.14::el8yggdrasil-worker-forwarder0:0.0.3-1.el8satRHSA-2023:6818
Red Hatsatellite:6.14::el8, satellite_capsule:6.14::el8puppet-agent0:7.26.0-3.el8satRHSA-2023:6818
Red Hatsatellite:6.14::el8, satellite_capsule:6.14::el8puppetserver0:7.11.0-1.el8satRHSA-2023:6818
Red Hatsatellite:6.14::el8, satellite_capsule:6.14::el8python-django, python39-django0:3.2.21-1.el8pcRHSA-2023:6818
Red Hatsatellite:6.14::el8, satellite_capsule:6.14::el8python-future, python39-future0:0.18.3-1.el8pcRHSA-2023:6818
7 more for Red Hat in the JSON and on Red Hat's page.
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-sqlparse0.2.3-3.3.1SUSE-SU-2023:2693-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-apipkg3.0.1-150400.12.6.1SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-cachetools5.3.1-150400.8.6.1SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-certifi2023.7.22-150400.12.6.2SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-cffi1.15.1-150400.8.7.2SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-charset-normalizer3.1.0-150400.9.7.2SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-cryptography41.0.3-150400.16.19.1SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-google-auth2.27.0-150400.6.7.1SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-idna3.4-150400.11.6.1SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-iniconfig2.0.0-150400.10.6.1SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-py1.11.0-150400.12.7.2SUSE-RU-2024:1637-3
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morepython-pyOpenSSL23.2.0-150400.3.10.1SUSE-RU-2024:1637-3
105 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.4, Leap 15.5python-sqlparse0.4.2-150300.3.6.1SUSE-SU-2023:2619-1
openSUSELeap 15.5libcrc32c1.1.2-150400.9.3.1SUSE-RU-2024:1637-1
openSUSELeap 15.5python-apipkg3.0.1-150400.12.6.1SUSE-RU-2024:1637-1
openSUSELeap 15.5python-cachetools5.3.1-150400.8.6.1SUSE-RU-2024:1637-1
openSUSELeap 15.5python-certifi2023.7.22-150400.12.6.2SUSE-RU-2024:1637-1
openSUSELeap 15.5python-cffi1.15.1-150400.8.7.2SUSE-RU-2024:1637-1
openSUSELeap 15.5python-charset-normalizer3.1.0-150400.9.7.2SUSE-RU-2024:1637-1
openSUSELeap 15.5python-cryptography41.0.3-150400.16.19.1SUSE-RU-2024:1637-1
openSUSELeap 15.5python-google-api-core2.15.0-150400.5.4.1SUSE-RU-2024:1637-1
openSUSELeap 15.5python-google-auth2.27.0-150400.6.7.1SUSE-RU-2024:1637-1
openSUSELeap 15.5python-google-cloud-appengine-logging1.4.0-150400.9.3.1SUSE-RU-2024:1637-1
openSUSELeap 15.5python-google-cloud-artifact-registry1.11.0-150400.9.3.1SUSE-RU-2024:1637-1
84 more for openSUSE in the JSON and on openSUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Satellite 6.14 for RHEL 8python-sqlparse-0:0.4.4-1.el8pcFixed 2023-11-08RHSA-2023:6818
RHUI 4 for RHEL 8python-sqlparse-0:0.4.4-1.0.1.el8uiFixed 2023-08-09RHSA-2023:4591
Red Hat Ansible Automation Platform 2python-sqlparseAffected
Red Hat OpenShift Container Platform 4python-sqlparseWill not fix
Red Hat OpenStack Platform 13 (Queens)python-sqlparseOut of support scope
Red Hat OpenStack Platform 16.1python-sqlparseWill not fix
Red Hat OpenStack Platform 16.2python-sqlparseWill not fix
Red Hat OpenStack Platform 17.0python-sqlparseOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-30608.

Attack patterns (CAPEC)

  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON