Vulnerabilities · 2022 · Djangoproject
CVE-2022-28346
Djangoproject Django vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Django, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Djangoproject Django runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- docs.djangoproject.com/en/4.0/releases/security/ · Patch
- www.djangoproject.com/weblog/2022/apr/11/security-releases/ · Patch
- www.openwall.com/lists/oss-security/2022/04/11/1 · Patch
- lists.debian.org/debian-lts-announce/2022/04/msg00013.html · Third Party Advisory
- security.netapp.com/advisory/ntap-20220609-0002/ · Third Party Advisory
- www.debian.org/security/2022/dsa-5254 · Third Party Advisory
- groups.google.com/forum/#%21forum/django-announce
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/H
- nvd.nist.gov/vuln/detail/CVE-2022-28346
- cve.org/CVERecord?id=CVE-2022-28346
More vulnerabilities in Djangoproject products
CVE-2026-1312CVE-2026-1287CVE-2026-1285CVE-2026-1207CVE-2025-64460CVE-2025-64459CVE-2025-64458CVE-2025-59682All 137
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.