CVE-2022-28347 · CRITICAL (CVSS 9.8)
Summary: A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4.
Details
A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the **options argument, and placing the injection payload in an option name.
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 [2a62cdcfec85938f40abb2e9e6a9ff497e02afe8 – 5c3300027b30c1b498d99010f7d618316f685045] [3591e1c1acbd7c13174275367c3fdf012cb0413b – 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-28347.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-28347
- https://www.debian.org/security/2022/dsa-5254
- https://www.djangoproject.com/weblog/2022/apr/11/security-releases/