Skip to content
Noroxi
CVE-2024-42005· NVD / CVE Program· CNA mitre

An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15.

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.

HighCVSS 7.3 · v3.1—No exploit Fix available
Published
Aug 7, 2024
Updated
Jun 17, 2026
EPSS
1.5% · 74th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

29

Monitor

Low priority for now.

CVSS
29 / 40 · 7.3 / 10
CISA KEV
0 / 30 · Not listed
EPSS
0 / 30 · 1.5%

CISA SSVC decision

Exploitation
none
Automatable
yes
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

VendorProduct
djangoprojectdjango

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • djangoproject django4.2 and later · before 4.2.15
  • djangoproject django5.0 and later · before 5.0.8

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:11python-djangobefore 2:2.2.28-1~deb11u112:2.2.28-1~deb11u11
Debian:12python-djangobefore 3:3.2.25-0+deb12u13:3.2.25-0+deb12u1
Debian:13python-djangobefore 3:4.2.15-13:4.2.15-1
openSUSE:Leap 15.5python-Djangobefore 2.0.7-150000.1.27.12.0.7-150000.1.27.1
openSUSE:Tumbleweedpython-Djangobefore 5.0.8-1.15.0.8-1.1
openSUSE:Tumbleweedpython-Django4before 4.2.15-1.14.2.15-1.1
PyPIdjangofrom 4.2 · before 4.2.154.2.15
PyPIdjangofrom 5.0 · before 5.0.85.0.8
Red Hat:ansible_automation_platform_developer:2.4::el8automation-controllerbefore 0:4.5.10-1.el8ap0:4.5.10-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8automation-controller-clibefore 0:4.5.10-1.el8ap0:4.5.10-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el8python39-zippbefore 0:3.19.2-1.el8ap0:3.19.2-1.el8ap
Red Hat:ansible_automation_platform_developer:2.4::el9automation-controllerbefore 0:4.5.10-1.el9ap0:4.5.10-1.el9ap
Red Hat:ansible_automation_platform_developer:2.4::el9automation-controller-clibefore 0:4.5.10-1.el9ap0:4.5.10-1.el9ap
Red Hat:ansible_automation_platform_developer:2.4::el9python-zippbefore 0:3.19.2-1.el9ap0:3.19.2-1.el9ap
Red Hat:ansible_automation_platform_developer:2.4::el9python3-zippbefore 0:3.19.2-1.el9ap0:3.19.2-1.el9ap
Red Hat:ansible_automation_platform:2.4::el8automation-controller-serverbefore 0:4.5.10-1.el8ap0:4.5.10-1.el8ap
Red Hat:ansible_automation_platform:2.4::el8automation-controller-uibefore 0:4.5.10-1.el8ap0:4.5.10-1.el8ap
Red Hat:ansible_automation_platform:2.4::el8automation-controller-venv-towerbefore 0:4.5.10-1.el8ap0:4.5.10-1.el8ap
Red Hat:ansible_automation_platform:2.4::el8python39-djangobefore 0:4.2.15-1.el8ap0:4.2.15-1.el8ap
Red Hat:ansible_automation_platform:2.4::el8python39-grpciobefore 0:1.58.3-1.el8ap0:1.58.3-1.el8ap
Red Hat:ansible_automation_platform:2.4::el8python39-grpcio-debuginfobefore 0:1.58.3-1.el8ap0:1.58.3-1.el8ap
Red Hat:ansible_automation_platform:2.4::el8python3x-djangobefore 0:4.2.15-1.el8ap0:4.2.15-1.el8ap
Red Hat:ansible_automation_platform:2.4::el8python3x-grpciobefore 0:1.58.3-1.el8ap0:1.58.3-1.el8ap
Red Hat:ansible_automation_platform:2.4::el8python3x-grpcio-debugsourcebefore 0:1.58.3-1.el8ap0:1.58.3-1.el8ap

+96

Other highest-scoring records for the same primary product.

  • CVE-2022-34265An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6.
    61This week
  • CVE-2020-7471Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection if untrusted data is used as a StringAgg delimiter
    59Plan
  • CVE-2019-19844Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover.
    55Plan
  • CVE-2019-14234An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4.
    53Plan
  • CVE-2021-35042Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a w
    52Plan
  • CVE-2023-24580An issue was discovered in the Multipart Request Parser in Django 3.2 before 3.2.18, 4.0 before 4.0.10, and 4.1 before 4.1.7.
    49Plan

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:python-django3:3.2.25-0+deb12u1 · Debian:12Package registry (OSV)
opensuse:python-Django4.2.11-150600.3.6.1 · openSUSE:Leap 15.6Package registry (OSV)
opensuse:python-Django44.2.15-1.1 · openSUSE:TumbleweedPackage registry (OSV)
PyPI:django4.2.15Package registry (OSV)
PyPI:django5.0.8Package registry (OSV)
red hat:automation-controller-venv-tower0:4.5.10-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8Package registry (OSV)
red hat:python-grpcio0:1.58.3-1.el9ap · Red Hat:ansible_automation_platform:2.4::el9Package registry (OSV)
red hat:python-grpcio-debugsource0:1.58.3-1.el9ap · Red Hat:ansible_automation_platform:2.4::el9Package registry (OSV)
red hat:python-zipp0:3.19.2-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9Package registry (OSV)
red hat:python3-grpcio0:1.58.3-1.el9ap · Red Hat:ansible_automation_platform:2.4::el9Package registry (OSV)
red hat:python3-grpcio-debuginfo0:1.58.3-1.el9ap · Red Hat:ansible_automation_platform:2.4::el9Package registry (OSV)
red hat:python3-zipp0:3.19.2-1.el9ap · Red Hat:ansible_automation_platform_developer:2.4::el9Package registry (OSV)
red hat:python39-grpcio0:1.58.3-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8Package registry (OSV)
red hat:python39-grpcio-debuginfo0:1.58.3-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8Package registry (OSV)
red hat:python39-zipp0:3.19.2-1.el8ap · Red Hat:ansible_automation_platform_developer:2.4::el8Package registry (OSV)
red hat:python3x-grpcio0:1.58.3-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8Package registry (OSV)
red hat:python3x-grpcio-debugsource0:1.58.3-1.el8ap · Red Hat:ansible_automation_platform:2.4::el8Package registry (OSV)
suse:python-Django4.2.11-150600.3.6.1 · SUSE:Linux Enterprise Module for Package Hub 15 SP6Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

No commit or PR link among the references.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2025-64459455 days apartPotential SQL injection via _connector keyword argument in QuerySet and Q objects
    42Plan
  • CVE-2024-53908121 days apartAn issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17.
    39Monitor
  • CVE-2025-59681420 days apartAn issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7.
    39Monitor
  • CVE-2025-57833392 days apartAn issue was discovered in Django 4.2 before 4.2.24, 5.1 before 5.1.12, and 5.2 before 5.2.6.
    37Monitor
  • CVE-2025-13372482 days apartPotential SQL injection in FilteredRelation column aliases on PostgreSQL
    17Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

National notice (Türkiye Cybersecurity Directorate / USOM)

Official security notices citing this record; remediation advice is on the agency's page.

All national notices →

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
low · data can be read
Integrity
low · data or configuration can be modified
Availability
low · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality impact
Low
Integrity impact
Low
Availability impact
Low

CVSS vector

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

nvd-primary

Root cause

The query text is built by concatenating user input. The database cannot tell where the data ends and the command begins.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
const owner = req.query.owner;const rows = await db.query(  "SELECT * FROM files WHERE owner = '" + owner + "'");

Fixed

ts
const owner = req.query.owner;const rows = await db.query(  "SELECT * FROM files WHERE owner = $1",  [owner]);

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records