Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-30608

published medium CVSS 3.1 · 5.5

Parser contains an inefficient regular expression in sqlparse

Published
18 Apr 2023, 21:32:11 UTC
Updated
03 Nov 2025, 21:48:07 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
andialbrecht — sqlparse>= 0.1.15, < 0.4.4 Affected Not stated GitHub_M
Debian bullseye sqlparse Advisory build 0.4.1-1+deb11u1 DLA-4000-1
Ubuntu bionic sqlparse Advisory build 0.2.4-0.1ubuntu0.1 USN-6064-1
SUSE / openSUSE SLE-15-SP3 python3-sqlparsenoarch Advisory build 0.4.2-150300.3.6.1 SUSE-SU-2023:2619-1
Rocky Linux 8 libdb-cxxx86_64 Listed in advisory Not stated RLSA-2023:6818
Debian buster sqlparse Advisory build 0.2.4-1+deb10u1 DLA-3425-1
Ubuntu focal sqlparse Advisory build 0.2.4-3ubuntu0.1 USN-6064-1
Ubuntu jammy sqlparse Advisory build 0.4.2-1ubuntu0.22.04.1 USN-6064-1
Show 41 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE SLE-15-SP4 python2-sqlparsenoarch Advisory build 0.2.4-150100.6.3.1 SUSE-SU-2023:2462-1
SUSE / openSUSE SLE-15-SP4 python3-sqlparsenoarch Advisory build 0.4.2-150300.3.6.1 SUSE-SU-2023:2619-1
SUSE / openSUSE SLE-15-SP5 python2-sqlparsenoarch Advisory build 0.2.4-150100.6.3.1 SUSE-SU-2023:2462-1
SUSE / openSUSE SLE-15-SP5 python3-sqlparsenoarch Advisory build 0.4.2-150300.3.6.1 SUSE-SU-2023:2619-1
SUSE / openSUSE openSUSE-Leap-15.4 python3-sqlparsenoarch Advisory build 0.4.2-150300.3.6.1 SUSE-SU-2023:2619-1
SUSE / openSUSE openSUSE-Leap-15.5 python3-sqlparsenoarch Advisory build 0.4.2-150300.3.6.1 SUSE-SU-2023:2619-1
SUSE / openSUSE openSUSE-Tumbleweed python310-sqlparseaarch64 Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python310-sqlparseppc64le Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python310-sqlparses390x Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python310-sqlparsex86_64 Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python311-sqlparseaarch64 Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python311-sqlparseppc64le Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python311-sqlparses390x Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python311-sqlparsex86_64 Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python313-sqlparseaarch64 Advisory build 0.5.5-2.1 OPENSUSE-SU-2026:11221-1
SUSE / openSUSE openSUSE-Tumbleweed python313-sqlparseppc64le Advisory build 0.5.5-2.1 OPENSUSE-SU-2026:11221-1
SUSE / openSUSE openSUSE-Tumbleweed python313-sqlparses390x Advisory build 0.5.5-2.1 OPENSUSE-SU-2026:11221-1
SUSE / openSUSE openSUSE-Tumbleweed python313-sqlparsex86_64 Advisory build 0.5.5-2.1 OPENSUSE-SU-2026:11221-1
SUSE / openSUSE openSUSE-Tumbleweed python314-sqlparseaarch64 Advisory build 0.5.5-2.1 OPENSUSE-SU-2026:11221-1
SUSE / openSUSE openSUSE-Tumbleweed python314-sqlparseppc64le Advisory build 0.5.5-2.1 OPENSUSE-SU-2026:11221-1
SUSE / openSUSE openSUSE-Tumbleweed python314-sqlparses390x Advisory build 0.5.5-2.1 OPENSUSE-SU-2026:11221-1
SUSE / openSUSE openSUSE-Tumbleweed python314-sqlparsex86_64 Advisory build 0.5.5-2.1 OPENSUSE-SU-2026:11221-1
SUSE / openSUSE openSUSE-Tumbleweed python39-sqlparseaarch64 Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python39-sqlparseppc64le Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python39-sqlparses390x Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
SUSE / openSUSE openSUSE-Tumbleweed python39-sqlparsex86_64 Advisory build 0.4.4-1.1 OPENSUSE-SU-2024:12957-1
Ubuntu bionic pypy-sqlparse Advisory build 0.2.4-0.1ubuntu0.1 USN-6064-1
Ubuntu bionic python-sqlparse Advisory build 0.2.4-0.1ubuntu0.1 USN-6064-1
Ubuntu bionic python3-sqlparse Advisory build 0.2.4-0.1ubuntu0.1 USN-6064-1
Ubuntu bionic sqlformat Advisory build 0.2.4-0.1ubuntu0.1 USN-6064-1
Ubuntu focal pypy-sqlparse Advisory build 0.2.4-3ubuntu0.1 USN-6064-1
Ubuntu focal python3-sqlparse Advisory build 0.2.4-3ubuntu0.1 USN-6064-1
Ubuntu focal sqlformat Advisory build 0.2.4-3ubuntu0.1 USN-6064-1
Ubuntu jammy python3-sqlparse Advisory build 0.4.2-1ubuntu0.22.04.1 USN-6064-1
Ubuntu jammy sqlformat Advisory build 0.4.2-1ubuntu0.22.04.1 USN-6064-1
Rocky Linux 8 libdb-cxx-debuginfox86_64 Listed in advisory Not stated RLSA-2023:6818
Rocky Linux 8 libdb-debuginfox86_64 Listed in advisory Not stated RLSA-2023:6818
Rocky Linux 8 libdb-debugsourcex86_64 Listed in advisory Not stated RLSA-2023:6818
Rocky Linux 8 libdb-sql-debuginfox86_64 Listed in advisory Not stated RLSA-2023:6818
Rocky Linux 8 libdb-sql-devel-debuginfox86_64 Listed in advisory Not stated RLSA-2023:6818
Rocky Linux 8 libdb-utils-debuginfox86_64 Listed in advisory Not stated RLSA-2023:6818

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.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

15

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
5.5 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
andialbrecht sqlparse >= 0.1.15, < 0.4.4 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-1333 CWE-1333: Inefficient Regular Expression Complexity (GitHub_M · cna)

References

6

Provider assertions

3

GitHub_M · cna

Parser contains an inefficient regular expression in sqlparse

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
b107a4a91bc7e8355abe2563fbd96c3489192c45fbcc416ad081beef9eba6199
Ingested
23 Sep 2026, 08:08:27 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected