CVE-2024-42005

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.
SQL Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
7.3 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
mitreCNA
---
---
CISA-ADPADP
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 48%
VendorProductVersion
djangoprojectdjango
4.2 ≤
𝑥
< 4.2.15
djangoprojectdjango
5.0 ≤
𝑥
< 5.0.8
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
python-django
bullseye
postponed
bookworm
no-dsa
bullseye (security)
vulnerable
bookworm (security)
vulnerable
sid
3:4.2.21-1
fixed
trixie
3:4.2.21-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python-django
noble
Fixed 3:4.2.11-1ubuntu1.2
released
jammy
Fixed 2:3.2.12-2ubuntu1.13
released
focal
not-affected
bionic
not-affected
xenial
not-affected
trusty
not-affected