Related Vulnerabilities: CVE-2022-28346  

QuerySet.annotate(), aggregate(), and extra() methods were subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods.

Severity High

Remote Yes

Type Sql injection

Description

QuerySet.annotate(), aggregate(), and extra() methods were subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods.

AVG-2667 python-django 4.0.3-1 4.0.4-1 High Fixed

https://www.djangoproject.com/weblog/2022/apr/11/security-releases/