Ubuntu CVE Tracker
UBUNTU-CVE-2022-28346
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:14.04:LTS | python-django | All versions before 1.6.11-0ubuntu1.3+esm5 (fixed in 1.6.11-0ubuntu1.3+esm5) |
| Ubuntu:Pro:16.04:LTS | python-django | All versions before 1.8.7-1ubuntu5.15+esm5 (fixed in 1.8.7-1ubuntu5.15+esm5) |
| Ubuntu:18.04:LTS | python-django | All versions before 1:1.11.11-1ubuntu1.17 (fixed in 1:1.11.11-1ubuntu1.17) |
| Ubuntu:20.04:LTS | python-django | All versions before 2:2.2.12-1ubuntu0.11 (fixed in 2:2.2.12-1ubuntu0.11) |