Advisory record · GHSA-pv4p-cwwg-4rph

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

CVSS 9.8 CriticalCriticalEPSS 0.015 · 74th percentile

Critical, because:

  • CVSS score 9.8: 9.0 or more.

How we decide what’s critical

Published by the GitHub Advisory Database at 7 Aug 2024, 15:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
djangoPyPI>=4.2, <4.2.15 || >=5.0, <5.0.84.2.15, 5.0.8
Identifiers
GHSA-pv4p-cwwg-4rph · BIT-django-2024-42005 · CVE-2024-42005 · PYSEC-2024-70
Weakness (CWE)
CWE-89
Published
7 Aug 2024
Updated
10 Jun 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Django versions 4.2 before 4.2.15 and 5.0 before 5.0.8 are vulnerable. On models with a JSONField, QuerySet.values() and values_list() can be exploited for SQL injection through column aliases when a crafted JSON object key is passed as an argument, so an attacker who can influence those keys may be able to run arbitrary SQL against the database. Upgrade to Django 4.2.15 or 5.0.8. The source gives few other details about the required access.

Written 10 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.8 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H ADP (CISA-ADP)
  • CISA KEV Not listed.
  • EPSS 0.015, the 74th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

This record came from the full history of the GitHub Advisory Database, published 7 Aug 2024. New records show when each source confirmed them.

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.