# CVE-2024-42005: Django SQL injection vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.50%, higher than 75% of CVEs (2026-12-01)
- Published: 2024-08-07T00:00:00.000Z
- Modified: 2026-09-10T16:00:58.745Z
- Also known as: GHSA-pv4p-cwwg-4rph, BIT-DJANGO-2024-42005, PYSEC-2024-70
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- djangoproject django: from 4.2 before 4.2.15; from 5.0 before 5.0.8
- django (PyPI): from 5.0 before 5.0.8; from 4.2 before 4.2.15
- django (Bitnami): from 4.2.0 before 4.2.15; from 5.0.0 before 5.0.8

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 Critical `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: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, 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/> (advisory, article, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240905-0007/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-42005> (advisory, web)
- <https://github.com/django/django/commit/32ebcbf2e1fe3e5ba79a6554a167efce81f7422d> (web)
- <https://github.com/django/django/commit/f4af67b9b41e0f4c117a8741da3abbd1c869ab28> (web)
- <https://docs.djangoproject.com/en/dev/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-70.yaml> (web)
- <https://security.netapp.com/advisory/ntap-20240905-0007> (web)
- <https://www.djangoproject.com/weblog/2024/aug/06/security-releases> (web)
- <https://github.com/advisories/GHSA-pv4p-cwwg-4rph> (advisory)

## Sources

- CVE List: [CVE-2024-42005](https://www.cve.org/CVERecord?id=CVE-2024-42005), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-pv4p-cwwg-4rph](https://github.com/advisories/GHSA-pv4p-cwwg-4rph), CC-BY-4.0, modified 2025-11-04
- NVD: [CVE-2024-42005](https://nvd.nist.gov/vuln/detail/CVE-2024-42005), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-70](https://osv.dev/vulnerability/PYSEC-2024-70), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2024-42005](https://osv.dev/vulnerability/BIT-DJANGO-2024-42005), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2024-42005 · Whole record: https://cve.day/CVE-2024-42005.json · Rebuilt by cve.day 2026-11-25T22:58:44.097Z
