What’s Vulnerable › Vulnerabilities

CVE-2024-42005

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

How to fix

Upgrade to a fixed version: Django 4.2.15, 5.0.8. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-42005 or the next vulnerability affects your stack