CVE-2024-42005: Python django · An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15
Affects python-djangoSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical · fixed in 2:3.2.12-2ubuntu1.13 : patch python-django as a priority.
Data as of 24 Nov 2026, 19:37 UTC
- Patch
- Available – fixed in 2:3.2.12-2ubuntu1.13, 3:4.2.11-1ubuntu1.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 7 Aug 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade the Ubuntu python-django to 2:3.2.12-2ubuntu1.13 (package) or 3:4.2.11-1ubuntu1.2 (package).
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 24.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied immediately. Ubuntu users should update the python3-django package to version 3:4.2.11-1ubuntu1.2 or later for Ubuntu 24.04 LTS, and 2:3.2.12-2ubuntu1.13 or later for Ubuntu 22.04 LTS. Standard system updates will apply the necessary fixes. No additional mitigation steps are indicated beyond applying these official updates.
Description
A SQL injection vulnerability exists in Django versions prior to 5.0.8 and 4.2.15. The issue affects the QuerySet.values() and values_list() methods when used on models with a JSONField, allowing crafted JSON object keys to be used as column aliases for injection. This vulnerability has a critical severity with a CVSS score of 9.8. Fixes are available in Django package versions 3:4.2.11-1ubuntu1.2 and 2:3.2.12-2ubuntu1.13 for Ubuntu distributions.