CVE-2024-42005SQL Injection in Django

CWE-89SQL Injection10 documents8 sources
Severity
7.3HIGHNVD
EPSS
0.3%
top 44.13%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedAug 7
Latest updateMay 27

Description

An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. QuerySet.values() and values_list() methods on models with a JSONField are subject to SQL injection in column aliases via a crafted JSON object key as a passed *arg.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:LExploitability: 3.9 | Impact: 3.4

Affected Packages2 packages

NVDdjangoproject/django4.24.2.15+1
PyPIdjangoproject/django5.05.0.8+1

Patches

🔴Vulnerability Details

4
OSV
Django SQL injection vulnerability2024-08-07
GHSA
Django SQL injection vulnerability2024-08-07
OSV
CVE-2024-42005: An issue was discovered in Django 52024-08-07
CVEList
CVE-2024-42005: An issue was discovered in Django 52024-08-07

📋Vendor Advisories

3
Red Hat
python-django: Potential SQL injection in QuerySet.values() and values_list()2024-08-06
Ubuntu
Django vulnerabilities2024-08-06
Debian
CVE-2024-42005: python-django - An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. QueryS...2024

💬Community

2
HackerOne
CVE-2024-56374: Denial-of-service vulnerability in IPv6 validation2025-05-27
HackerOne
CVE-2024-42005: Potential SQL injection in QuerySet.values() and values_list()2024-08-24
CVE-2024-42005 — SQL Injection in Djangoproject Django | cvebase