High
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
Type: advisorySources: OSV
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-4340
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:00 UTC · Revision 1
Source evidence
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
core-osv · Original sourcePublished 30 Apr 2024, 14:23 UTC
Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.
osv:CVE-2024-4340
Complete source record
{
"id": "9412f3568b666274e13a72fe24bb8fb5d60b1b2f77bbb0d64bc18500cba7aced",
"url": "https://osv.dev/vulnerability/CVE-2024-4340",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.",
"summary": "Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.",
"evidence": "osv:CVE-2024-4340",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-4340",
"aliases": [
"CVE-2024-4340",
"GHSA-2m57-hf25-phgg",
"PYSEC-2026-1940"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/andialbrecht/sqlparse",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ddbd0ec3592545c914fe71e47118c04582d8bfb0"
},
{
"fixed": "b4a39d9850969b4e1d6940d32094ee0b42a2cf03"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.5.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "b4a39d9850969b4e1d6940d32094ee0b42a2cf03"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"0.4.4",
"0.4.3",
"0.4.2",
"0.4.1",
"0.4.0",
"0.3.1",
"0.3.0",
"0.2.4",
"0.2.3",
"0.2.2",
"0.2.1",
"0.2.0",
"0.1.18",
"0.1.17",
"0.1.16",
"0.1.15",
"0.1.14",
"0.1.13",
"0.1.12",
"0.1.11",
"0.1.10",
"0.1.9",
"0.1.8",
"0.1.7",
"0.1.6",
"0.1.5",
"0.1.3",
"0.1.2",
"0.1.1",
"0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-4340.json"
}
}
],
"modified": "2026-10-28T02:30:29.984153336Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2024/12/msg00022.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4340.json",
"https://github.com/advisories/GHSA-2m57-hf25-phgg",
"https://nvd.nist.gov/vuln/detail/CVE-2024-4340",
"https://research.jfrog.com/vulnerabilities/sqlparse-stack-exhaustion-dos-jfsa-2024-001031292/",
"https://github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03",
"https://pypi.org/project/pip"
],
"provider_metadata": {
"cwe_ids": [
"CWE-674"
],
"cna_assigner": "JFROG",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/4xxx/CVE-2024-4340.json"
}
},
"related_cves": [
{
"value": "CVE-2024-4340",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496616,
"published_at": "2024-04-30T14:23:03.435+00:00"
}