CVE-2024-4340
published high CVSS 3.1 · 7.5Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | sqlparse0 to < 0.5.0 | Affected | Not stated | JFROG |
| sqlparse_project | — | sqlparse0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Debian | bullseye | sqlparse | Advisory build | 0.4.1-1+deb11u1 | DLA-4000-1 |
| Ubuntu | jammy | sqlparse | Advisory build | 0.4.2-1ubuntu0.22.04.2 | USN-6771-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-sqlparsenoarch | Advisory build | 0.4.2-150300.12.1 | SUSE-SU-2024:1861-1 |
| Ubuntu | noble | sqlparse | Advisory build | 0.4.4-1ubuntu0.1 | USN-6771-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-sqlparsenoarch | Advisory build | 0.4.2-150300.12.1 | SUSE-SU-2024:1861-1 |
| SUSE / openSUSE | SLE-15-SP4 | python311-sqlparsenoarch | Advisory build | 0.4.4-150400.6.7.1 | SUSE-SU-2024:1767-1 |
Show 9 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | python3-sqlparsenoarch | Advisory build | 0.4.2-150300.12.1 | SUSE-SU-2024:1861-1 |
| SUSE / openSUSE | SLE-15-SP5 | python311-sqlparsenoarch | Advisory build | 0.4.4-150400.6.7.1 | SUSE-SU-2024:1767-1 |
| SUSE / openSUSE | SLE-15-SP6 | python3-sqlparsenoarch | Advisory build | 0.4.2-150300.12.1 | SUSE-SU-2024:1861-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-sqlparsenoarch | Advisory build | 0.4.2-150300.12.1 | SUSE-SU-2024:1861-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python311-sqlparsenoarch | Advisory build | 0.4.4-150400.6.7.1 | SUSE-SU-2024:1767-1 |
| Ubuntu | jammy | python3-sqlparse | Advisory build | 0.4.2-1ubuntu0.22.04.2 | USN-6771-1 |
| Ubuntu | jammy | sqlformat | Advisory build | 0.4.2-1ubuntu0.22.04.2 | USN-6771-1 |
| Ubuntu | noble | python3-sqlparse | Advisory build | 0.4.4-1ubuntu0.1 | USN-6771-1 |
| Ubuntu | noble | sqlformat | Advisory build | 0.4.4-1ubuntu0.1 | USN-6771-1 |
Description
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
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
- 7.5 / 10
- Severity
- high
- Provider
- JFROG · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sqlparse | 0 to < 0.5.0 (affected · python) | JFROG · cna | |
| sqlparse_project | sqlparse | 0 (affected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-674 CWE-674 Uncontrolled Recursion
References
4Provider assertions
3JFROG · cna
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 74151a061d1c6e0875f2c8e866dde9a490f1d0d602d87d89b15f1f58171844c0
- Ingested
- 23 Sep 2026, 08:29:21 UTC
- Source record
- Official CVE record