---
title: "CVE-2024-42005\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2024-42005?format=md
keywords: index, follow
---

# CVE-2024-42005

Publication date 6 August 2024

Last updated 26 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.3 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2024-42005?format=md#impact-score)

Toggle side navigation

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

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| python-django | 24.04 LTS noble | Fixed 3:4.2.11-1ubuntu1.2 |
| 22.04 LTS jammy | Fixed 2:3.2.12-2ubuntu1.13 |
| 20.04 LTS focal | Not affected |
| 18.04 LTS bionic | Not affected |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.3 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | Low |
  | Integrity impact | Low |
  | Availability impact | Low |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.3 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-42005)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2024-42005)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2024-42005)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2024-42005)

### Related Ubuntu Security Notices (USN)

+ [USN-6946-1](https://usn.ubuntu.com/USN-6946-1)
+ Django vulnerabilities
+ 6 August 2024

### Other references

* <https://www.cve.org/CVERecord?id=CVE-2024-42005>
