CVE-2023-30608
published medium CVSS 3.1 · 5.5Parser contains an inefficient regular expression in sqlparse
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
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.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| andialbrecht | sqlparse | >= 0.1.15, < 0.4.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-1333 CWE-1333: Inefficient Regular Expression Complexity
References
6- https://github.com/andialbrecht/sqlparse/commit/c457abd5f097dd13fb21543381e7cfafe7d31cfb
- https://github.com/andialbrecht/sqlparse/commit/e75e35869473832a1eb67772b1adfee2db11b85a
- https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-rrm6-wvj7-cwh2
- https://lists.debian.org/debian-lts-announce/2023/05/msg00017.html
- https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html
- https://owasp.org/www-community/attacks/Regular_expression_Denial_of_Service_-_ReDoS
Provider assertions
3GitHub_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