What’s Vulnerable › Vulnerabilities
CVE-2024-42005
- Severity: high (CVSS 7.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-08-07 · updated 2026-06-17
- Weakness: CWE-89
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.
Affected products
- Django: from 4.2 before 4.2.15; from 5.0 before 5.0.8 — fixed in 4.2.15, 5.0.8
How to fix
Upgrade to a fixed version: Django 4.2.15, 5.0.8. Check the vendor advisory for mitigations.
References
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- https://www.djangoproject.com/weblog/2024/aug/06/security-releases/
- https://security.netapp.com/advisory/ntap-20240905-0007/
Get alerted when CVE-2024-42005 or the next vulnerability affects your stack