CVE-2022-28346 · CRITICAL (CVSS 9.8)
Summary: 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.
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.
Severity
CRITICAL (CVSS 9.8) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected packages
- PyPI django [2.2 – 2.2.28]
- PyPI django [3.2 – 3.2.13]
- PyPI django [4.0 – 4.0.4]
- GIT github.com/django/django [635d53a86a36cde7866b9caefeb64d809e6bfcd9 – 5c3300027b30c1b498d99010f7d618316f685045] [b6475d7d7940f3ce575e0b0f2d83e517f899b4cf – 08e6073f878264a0c091da0d3db456820252ef6c] [ef62a3a68c9d558486145a42c0d71ea9a76add9e – 89807fbde8b7b17d00434bc4695535855e96fe77]
References
- http://www.openwall.com/lists/oss-security/2022/04/11/1
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/28xxx/CVE-2022-28346.json
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
- https://nvd.nist.gov/vuln/detail/CVE-2022-28346
- https://security.netapp.com/advisory/ntap-20220609-0002/
- https://www.debian.org/security/2022/dsa-5254
- https://lists.debian.org/debian-lts-announce/2022/04/msg00013.html
- https://www.djangoproject.com/weblog/2022/apr/11/security-releases/