{"id":"CVE-2024-42005","published":"2024-08-07T00:00:00Z","modified":"2025-11-04T16:13:43Z","title":"An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01503,"percentile":0.7495,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":[]},{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":[]},{"url":"https://www.djangoproject.com/weblog/2024/aug/06/security-releases/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240905-0007/","tags":[]}],"priority":{"score":21.9,"factors":[{"name":"EPSS percentile","points":14.99},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-08-16T20:19:17.076015Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=5.0, <5.0.8",">=4.2, <4.2.15"],"patched":["5.0.8","4.2.15"],"from":["GHSA-pv4p-cwwg-4rph","PYSEC-2024-70"],"provenance":"source"}],"summary":{"text":"The flaw is a SQL injection issue in Django's QuerySet.values() and values_list() methods, affecting models that use a JSONField in Django 5.0 before 5.0.8 and 4.2 before 4.2.15, where column aliases can be manipulated through a crafted JSON object key passed as a *arg. An attacker with network access and no authentication or user interaction can exploit it by supplying a crafted JSON object key, which can compromise confidentiality, integrity, and availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:45:33Z"},"euvd":{"id":"EUVD-2024-0047","exploited":false,"provenance":"source"}}