
CVE catalog
CVE-2024-4340
SQL parse vulnerability
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 3.24% · Oct 25, 2026
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | sqlparse | sid | 0.5.5-2 | fixed |
| Debian | sqlparse | forky | 0.5.5-2 | fixed |
| Debian | sqlparse | trixie | 0.5.3-1 | fixed |
| Debian | sqlparse | bookworm | 0.4.2-1+deb12u1 | fixed |
| Ubuntu | sqlparse | noble | 0.4.4-1ubuntu0.1 | fixed |
| Ubuntu | python-sqlparse-doc | noble | 0.4.4-1ubuntu0.1 | fixed |
| Ubuntu | python3-sqlparse | noble | 0.4.4-1ubuntu0.1 | fixed |
| Ubuntu | sqlformat | noble | 0.4.4-1ubuntu0.1 | fixed |
| PyPI | sqlparse | Not reported | 0.5.0 | fixed |
| Ubuntu | sqlparse | 22.04 | 0.4.1-1ubuntu1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.2 | fixed |
| Ubuntu | sqlparse | 24.04 | 0.4.2-1ubuntu1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1ubuntu0.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for public cloud 15 sp4 | 0.4.4-150400.6.7.1 | fixed |
| Suse | python-sqlparse | linux enterprise module for public cloud 15 sp5 | 0.4.4-150400.6.7.1 | fixed |
| Opensuse | python-sqlparse | leap 15.5 | 0.4.4-150400.6.7.1 | fixed |
| Suse | python3-sqlparse | linux enterprise module for basesystem 15 sp5 | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | linux enterprise module for basesystem 15 sp6 | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | linux enterprise high performance computing 15 sp3-ltss | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | linux enterprise high performance computing 15 sp4-espos | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | linux enterprise high performance computing 15 sp4-ltss | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server 15 sp3-ltss | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server 15 sp4-ltss | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server for sap applications 15 sp3 | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | linux enterprise server for sap applications 15 sp4 | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | manager proxy 4.3 | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | manager server 4.3 | 0.4.2-150300.12.1 | fixed |
| Suse | python3-sqlparse | enterprise storage 7.1 | 0.4.2-150300.12.1 | fixed |
| Opensuse | python3-sqlparse | leap 15.5 | 0.4.2-150300.12.1 | fixed |
| Ubuntu | sqlparse | 22.04 | 0.4.1-1ubuntu1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.1 | vulnerable |
| Ubuntu | sqlparse | 22.04 | 0.4.2-1ubuntu0.22.04.2 | fixed |
| Ubuntu | sqlparse | 24.04 | 0.4.2-1ubuntu1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1 | vulnerable |
| Ubuntu | sqlparse | 24.04 | 0.4.4-1ubuntu0.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | sqlparse | source | sid | 0.5.0-1 | not yet assigned | Not reported | [1070148] |
| Debian | sqlparse | source | forky | 0.5.0-1 | not yet assigned | Not reported | [1070148] |
| Debian | sqlparse | source | trixie | 0.5.0-1 | not yet assigned | Not reported | [1070148] |
| Debian | sqlparse | source | bookworm | 0.4.2-1+deb12u1 | not yet assigned | Not reported | [1070148] |
| Ubuntu | sqlparse | deb | noble | 0.4.4-1ubuntu0.1 | Not reported | Not reported | Not reported |
| Ubuntu | python-sqlparse-doc | deb | noble | 0.4.4-1ubuntu0.1 | Not reported | Not reported | Not reported |
| Ubuntu | python3-sqlparse | deb | noble | 0.4.4-1ubuntu0.1 | Not reported | Not reported | Not reported |
| Ubuntu | sqlformat | deb | noble | 0.4.4-1ubuntu0.1 | Not reported | Not reported | Not reported |
| PyPI | sqlparse | PyPI | Not reported | 0.5.0 | Not reported | GHSA-2M57-HF25-PHGG | Not reported |
| Ubuntu | sqlparse | deb | 22.04 | 0.4.2-1ubuntu0.22.04.2 | Not reported | USN-6771-1 | Not reported |
| Ubuntu | sqlparse | deb | 24.04 | 0.4.4-1ubuntu0.1 | Not reported | USN-6771-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for public cloud 15 sp4 | 0.4.4-150400.6.7.1 | Not reported | SUSE-SU-2024:1767-1 | Not reported |
| Suse | python-sqlparse | rpm | linux enterprise module for public cloud 15 sp5 | 0.4.4-150400.6.7.1 | Not reported | SUSE-SU-2024:1767-1 | Not reported |
| Opensuse | python-sqlparse | rpm | leap 15.5 | 0.4.4-150400.6.7.1 | Not reported | SUSE-SU-2024:1767-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise module for basesystem 15 sp5 | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise module for basesystem 15 sp6 | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise high performance computing 15 sp3-ltss | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise high performance computing 15 sp4-espos | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise high performance computing 15 sp4-ltss | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server 15 sp3-ltss | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server 15 sp4-ltss | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server for sap applications 15 sp3 | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | linux enterprise server for sap applications 15 sp4 | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | manager proxy 4.3 | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | manager server 4.3 | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Suse | python3-sqlparse | rpm | enterprise storage 7.1 | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Opensuse | python3-sqlparse | rpm | leap 15.5 | 0.4.2-150300.12.1 | Not reported | SUSE-SU-2024:1861-1 | Not reported |
| Ubuntu | sqlparse | deb | 22.04 | 0.4.2-1ubuntu0.22.04.2 | Not reported | UBUNTU-CVE-2024-4340 | Not reported |
| Ubuntu | sqlparse | deb | 24.04 | 0.4.4-1ubuntu0.1 | Not reported | UBUNTU-CVE-2024-4340 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_1767-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-4340]
- [https://osv.dev/vulnerability/GHSA-2m57-hf25-phgg]
- [https://osv.dev/vulnerability/SUSE-SU-2024:1767-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:1861-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-4340]
- [https://osv.dev/vulnerability/USN-6771-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-4340]
- [https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-4340.json]
- [https://ubuntu.com/security/notices/USN-6771-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1328.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]