CVE-2024-42005
CVE-2024-42005
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 9.8 · Critical · EPSS 1.5% · Fix available
- Published
- Updated
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
python-django Debian:12
- Versions
- 3:3.2.19-1
- 3:3.2.19-1+deb12u1
- 3:3.2.19-1+deb12u1~bpo11+1
- 3:3.2.19-1+deb12u2
- 3:3.2.20-1
- 3:3.2.20-1.1
- 3:3.2.21-1
- Affected ranges
- ECOSYSTEM: < 3:3.2.25-0+deb12u1
Update to 3:3.2.25-0+deb12u1
python-django Debian:13
- Affected ranges
- ECOSYSTEM: < 3:4.2.15-1
Update to 3:4.2.15-1
python-django Debian:14
- Affected ranges
- ECOSYSTEM: < 3:4.2.15-1
Update to 3:4.2.15-1
django PyPI
- Versions
- 5.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.0.6
- 5.0.7
- Affected ranges
- ECOSYSTEM: ≥ 5.0, < 5.0.8
Update to 5.0.8
django PyPI
- Versions
- 4.2
- 4.2.1
- 4.2.10
- 4.2.11
- 4.2.12
- 4.2.13
- 4.2.14
- 4.2.2
- 4.2.3
- 4.2.4
- 4.2.5
- 4.2.6
- 4.2.7
- 4.2.8
- 4.2.9
- Affected ranges
- ECOSYSTEM: ≥ 4.2, < 4.2.15
Update to 4.2.15
django PyPI
- Versions
- 4.2
- 4.2.1
- 4.2.10
- 4.2.11
- 4.2.12
- 4.2.13
- 4.2.14
- 4.2.2
- 4.2.3
- 4.2.4
- 4.2.5
- 4.2.6
- 4.2.7
- 4.2.8
- 4.2.9
- 5.0
- 5.0.1
- 5.0.2
- 5.0.3
- 5.0.4
- 5.0.5
- 5.0.6
- 5.0.7
- Affected ranges
- ECOSYSTEM: ≥ 5.0, < 5.0.8 ∪ ≥ 4.2, < 4.2.15
Update to 5.0.8; Update to 4.2.15
python-django Ubuntu:22.04:LTS
- Versions
- 2:2.2.24-1ubuntu1
- 2:3.2.12-2
- 2:3.2.12-2ubuntu1
- 2:3.2.12-2ubuntu1.1
- 2:3.2.12-2ubuntu1.2
- 2:3.2.12-2ubuntu1.3
- 2:3.2.12-2ubuntu1.4
- 2:3.2.12-2ubuntu1.5
- 2:3.2.12-2ubuntu1.6
- 2:3.2.12-2ubuntu1.7
- 2:3.2.12-2ubuntu1.8
- 2:3.2.12-2ubuntu1.9
- 2:3.2.12-2ubuntu1.10
- 2:3.2.12-2ubuntu1.11
- 2:3.2.12-2ubuntu1.12
- Affected ranges
- ECOSYSTEM: < 2:3.2.12-2ubuntu1.13
Update to 2:3.2.12-2ubuntu1.13
python-django Ubuntu:24.04:LTS
- Versions
- 3:4.2.4-1ubuntu2
- 3:4.2.8-1
- 3:4.2.9-1
- 3:4.2.11-1
- 3:4.2.11-1ubuntu1
- 3:4.2.11-1ubuntu1.1
- Affected ranges
- ECOSYSTEM: < 3:4.2.11-1ubuntu1.2
Update to 3:4.2.11-1ubuntu1.2