Skip to main content
VulnerabilityPublished Updated

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

0
Compare
Authoritative record:CVE-2024-42005· Critical 9.8

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

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Aug 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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).

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=nobleOther threatsAffected
  • <3:4.2.11-1ubuntu1.2
Fixed in
  • 3:4.2.11-1ubuntu1.2
Ubuntu 22.04 LTSpython-djangopkg:deb/ubuntu/python-django?arch=source&distro=jammyOther threatsAffected
  • <2:3.2.12-2ubuntu1.13
Fixed in
  • 2:3.2.12-2ubuntu1.13

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.

References

Community reviews

Loading reviews…