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.
| Software | From | Fixed in |
|---|---|---|
| djangoproject / django | 4.0 | 4.0.4 |
| djangoproject / django | 3.2 | 3.2.13 |
| djangoproject / django | 2.2 | 2.2.28 |
| debian / debian_linux | 9.0 | 9.0.x |
| debian / debian_linux | 11.0 | 11.0.x |
Django
|
2.2 | 2.2.28 |
Django
|
3.2 | 3.2.13 |
Django
|
4.0 | 4.0.4 |