CVE-2022-28346
CRITICAL9.8EPSS 2.0%python-django - security update
Published: 4/13/2022Modified: 4/28/2026
Description
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 (5)
- Bitnami/django>= 2.2.0, < 2.2.28, >= 3.2.0, < 3.2.13, >= 4.0.0, < 4.0.4
- Debian/python-djangofrom 0, < 2:2.2.28-1~deb11u1
- Debian/python-djangofrom 0, < 1:1.10.7-2+deb9u16
- PyPI/django>= 2.2, < 2.2.28
- PyPI/django>= 4.0, < 4.0.4, >= 3.2, < 3.2.13, >= 2.2, < 2.2.28
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
References (24)
- ADVISORYhttps://github.com/advisories/GHSA-2gwj-7jmv-h26r
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2022-28346
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2022-28346
- ADVISORYhttps://www.djangoproject.com/weblog/2022/apr/11/security-releases/
- PATCHhttps://github.com/django/django
- WEBhttps://docs.djangoproject.com/en/4.0/releases/security
- WEBhttps://docs.djangoproject.com/en/4.0/releases/security/
- WEBhttps://github.com/django/django/commit/2044dac5c6968441be6f534c4139bcf48c5c7e48
- WEBhttps://github.com/django/django/commit/2c09e68ec911919360d5f8502cefc312f9e03c5d
- WEBhttps://github.com/django/django/commit/800828887a0509ad1162d6d407e94d8de7eafc60
- WEBhttps://github.com/django/django/commit/93cae5cb2f9a4ef1514cf1a41f714fef08005200
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-190.yaml
- WEBhttps://groups.google.com/forum/#%21forum/django-announce
- WEBhttps://groups.google.com/forum/#!forum/django-announce
- WEBhttps://lists.debian.org/debian-lts-announce/2022/04/msg00013.html
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
- WEBhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK
- WEBhttps://lists.fedoraproject.org/archives/list/[email protected]/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI
- WEBhttps://security.netapp.com/advisory/ntap-20220609-0002
- WEBhttps://security.netapp.com/advisory/ntap-20220609-0002/
- WEBhttps://www.debian.org/security/2022/dsa-5254
- WEBhttps://www.djangoproject.com/weblog/2022/apr/11/security-releases
- WEBhttp://www.openwall.com/lists/oss-security/2022/04/11/1