CVE-2024-42005
HIGH 7.3CVSS 3.1Django SQL injection 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.
- Published
- 7 Aug 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- BIT-django-2024-42005GHSA-pv4p-cwwg-4rphPYSEC-2024-70
- Sources
- NVDJSONOSV GHSA-pv4p-cwwg-4rphJSONOSV PYSEC-2024-70JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 4.2, < 4.2.15 | 4.2.15 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 5.0, < 5.0.8 | 5.0.8 |
| OSV | PyPI | django | >= 5.0, < 5.0.8 | 5.0.8 |
| OSV | PyPI | django | >= 4.2, < 4.2.15 | 4.2.15 |
| OSV | PyPI | django | >= 5.0, < 5.0.8; >= 4.2, < 4.2.15 | 5.0.8, 4.2.15 |
References
- https://docs.djangoproject.com/en/dev/releases/security/ · Patch, Vendor Advisory, WEB
- https://groups.google.com/forum/#%21forum/django-announce · Not Applicable, WEB
- https://www.djangoproject.com/weblog/2024/aug/06/security-releases/ · Vendor Advisory, WEB, ARTICLE
- https://security.netapp.com/advisory/ntap-20240905-0007/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-42005 · ADVISORY
- https://github.com/django/django/commit/32ebcbf2e1fe3e5ba79a6554a167efce81f7422d · WEB
- https://github.com/django/django/commit/f4af67b9b41e0f4c117a8741da3abbd1c869ab28 · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-70.yaml · WEB
- https://github.com/advisories/GHSA-pv4p-cwwg-4rph · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 7 Aug 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Aug 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Aug 2024)