CVE-2022-28346

An issue was discovered in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. QuerySet.annotate(), aggregate(), and extra() methods are subject to SQL injection in column aliases via a crafted dictionary (with dictionary expansion) as the passed **kwargs.
SQL Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTNIST
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
mitreCNA
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 84%
VendorProductVersion
djangoprojectdjango
2.2 ≤
𝑥
< 2.2.28
djangoprojectdjango
3.2 ≤
𝑥
< 3.2.13
djangoprojectdjango
4.0 ≤
𝑥
< 4.0.4
debiandebian_linux
9.0
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
python-django
bullseye (security)
2:2.2.28-1~deb11u2
fixed
bullseye
2:2.2.28-1~deb11u2
fixed
bookworm
3:3.2.19-1+deb12u1
fixed
bookworm (security)
3:3.2.19-1+deb12u1
fixed
sid
3:4.2.16-1
fixed
trixie
3:4.2.16-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
python-django
jammy
Fixed 3.2.12-2ubuntu1
released
impish
Fixed 2:2.2.24-1ubuntu1.4
released
focal
Fixed 2:2.2.12-1ubuntu0.11
released
bionic
Fixed 1:1.11.11-1ubuntu1.17
released
xenial
Fixed 1.8.7-1ubuntu5.15+esm5
released
trusty
Fixed 1.6.11-0ubuntu1.3+esm5
released