CVE
CVE-2024-42005
CVE-2024-42005HIGH 7.3EPSS 75%
CNA 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 versions
- django≥ 5.0, < 5.0.8Fixed in 5.0.8
- django≥ 4.2, < 4.2.15Fixed in 4.2.15
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- docs.djangoproject.com/en/dev/releases/security/ · Patch, Vendor Advisory
- www.djangoproject.com/weblog/2024/aug/06/security-releases/ · Vendor Advisory
- github.com/advisories/GHSA-pv4p-cwwg-4rph · Third Party Advisory
- osv.dev/vulnerability/GHSA-pv4p-cwwg-4rph · Third Party Advisory
- github.com/django/django/commit/32ebcbf2e1fe3e5ba79a6554a167efce81f742 · Vendor Advisory
- github.com/django/django/commit/f4af67b9b41e0f4c117a8741da3abbd1c869ab · Vendor Advisory
- docs.djangoproject.com/en/dev/releases/security · Vendor Advisory
- www.djangoproject.com/weblog/2024/aug/06/security-releases · Vendor Advisory
- osv.dev/vulnerability/PYSEC-2024-70 · Third Party Advisory
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.