First published: Fri Aug 02 2024(Updated: )
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.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Djangoproject Django | >=4.2<4.2.15 | |
Djangoproject Django | >=5.0<5.0.8 | |
pip/Django | >=4.2<4.2.15 | 4.2.15 |
pip/Django | >=5.0<5.0.8 | 5.0.8 |
debian/python-django | <=2:2.2.28-1~deb11u2<=3:3.2.19-1+deb12u1 | 3:4.2.16-1 |
IBM Storage Defender - Resiliency Service | <=2.0.0 - 2.0.7 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-42005 has been rated as a high severity vulnerability due to its potential for SQL injection.
To fix CVE-2024-42005, upgrade Django to version 4.2.15 or 5.0.8 or later.
CVE-2024-42005 affects Django versions 5.0 through 5.0.7 and 4.2 through 4.2.14.
The QuerySet.values() and values_list() methods are vulnerable in CVE-2024-42005.
Yes, CVE-2024-42005 specifically involves SQL injection vulnerabilities in JSONField column aliases.