Vulnerabilities · 2024 · Djangoproject
CVE-2024-42005
Djangoproject Django vulnerability
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.
Affected products
Django. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Djangoproject Django runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- docs.djangoproject.com/en/dev/releases/security/ · Patch
- www.djangoproject.com/weblog/2024/aug/06/security-releases/ · Vendor Advisory
- nvd.nist.gov/vuln/detail/CVE-2024-42005
- docs.djangoproject.com/en/dev/releases/security
- www.djangoproject.com/weblog/2024/aug/06/security-releases
- github.com/django/django/commit/32ebcbf2e1fe3e5ba79a6554a167efce81f7422d
- github.com/django/django/commit/f4af67b9b41e0f4c117a8741da3abbd1c869ab28
- github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-70.yaml
- nvd.nist.gov/vuln/detail/CVE-2024-42005
- cve.org/CVERecord?id=CVE-2024-42005
More vulnerabilities in Djangoproject products
CVE-2026-1312CVE-2026-1287CVE-2026-1285CVE-2026-1207CVE-2025-64460CVE-2025-64459CVE-2025-64458CVE-2025-59682All 137
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.