---
title: "CVE-2024-42005: Django SQL injection vulnerability"
url: https://erroneo.us/security/cve/CVE-2024-42005/
description: "CVE-2024-42005 (Django (PyPI)): An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. QuerySet.values() and valueslist() methods on…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-08-07
date_modified: 2025-11-04
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-42005"
kev: false
cvss: 9.3
epss: 0.01503
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-42005: Django SQL injection vulnerability

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 1.5% , percentile 74: FIRST’s model estimates a 1.5% chance of exploitation activity in the next 30 days, higher than 74% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes Django (PyPI) >= 5.0, < 5.0.8, fixed in 5.0.8 ; Django (PyPI) >= 4.2, < 4.2.15, fixed in 4.2.15 . Check your lockfile, including transitive dependencies.

## What it is

An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. QuerySet.values() and valueslist() 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 packages

- PyPI `Django` >= 5.0, < 5.0.8 → fixed: 5.0.8
- PyPI `Django` >= 4.2, < 4.2.15 → fixed: 4.2.15

## Affected products (CVE record)

- n/a n/a: see advisory

## Severity

- CISA-ADP CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 4.0: 9.3 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.50% probability of exploitation activity in the next 30 days; percentile 74.

## Sources

- [GitHub Advisory GHSA-pv4p-cwwg-4rph](https://github.com/advisories/GHSA-pv4p-cwwg-4rph)
- [CVE.org record CVE-2024-42005](https://www.cve.org/CVERecord?id=CVE-2024-42005)
- [NVD entry CVE-2024-42005](https://nvd.nist.gov/vuln/detail/CVE-2024-42005)
- [docs.djangoproject.com](https://docs.djangoproject.com/en/dev/releases/security/)
- [groups.google.com](https://groups.google.com/forum/#%21forum/django-announce)
- [djangoproject.com](https://www.djangoproject.com/weblog/2024/aug/06/security-releases/)
- [security.netapp.com](https://security.netapp.com/advisory/ntap-20240905-0007/)
- [github.com](https://github.com/django/django/commit/32ebcbf2e1fe3e5ba79a6554a167efce81f7422d)
- [github.com](https://github.com/django/django/commit/f4af67b9b41e0f4c117a8741da3abbd1c869ab28)
- [github.com](https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-70.yaml)

---
Source page: https://erroneo.us/security/cve/CVE-2024-42005/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
