{"id":"CVE-2022-28346","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.","aliases":["BIT-django-2022-28346","GHSA-2gwj-7jmv-h26r","PYSEC-2022-190"],"modified":"2026-04-16T00:01:16.190603278Z","published":"2022-04-12T05:15:06.927Z","related":["SUSE-SU-2022:3338-1","SUSE-SU-2022:3339-1","SUSE-SU-2024:2817-1","openSUSE-SU-2023:0005-1","openSUSE-SU-2024:12094-1","openSUSE-SU-2024:14208-1","openSUSE-SU-2025:14662-1","openSUSE-SU-2026:10005-1"],"database_specific":{"unresolved_ranges":[{"cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"11.0"}],"source":"CPE_FIELD"},{"cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"9.0"}],"source":"CPE_FIELD"}]},"references":[{"type":"WEB","url":"https://groups.google.com/forum/#%21forum/django-announce"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00013.html"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220609-0002/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5254"},{"type":"FIX","url":"http://www.openwall.com/lists/oss-security/2022/04/11/1"},{"type":"FIX","url":"https://docs.djangoproject.com/en/4.0/releases/security/"},{"type":"FIX","url":"https://www.djangoproject.com/weblog/2022/apr/11/security-releases/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/django/django","events":[{"introduced":"2a62cdcfec85938f40abb2e9e6a9ff497e02afe8"},{"fixed":"5c3300027b30c1b498d99010f7d618316f685045"},{"introduced":"3591e1c1acbd7c13174275367c3fdf012cb0413b"},{"fixed":"08e6073f878264a0c091da0d3db456820252ef6c"},{"introduced":"ef62a3a68c9d558486145a42c0d71ea9a76add9e"},{"fixed":"89807fbde8b7b17d00434bc4695535855e96fe77"}],"database_specific":{"cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"2.2"},{"fixed":"2.2.28"},{"introduced":"3.2"},{"fixed":"3.2.13"},{"introduced":"4.0"},{"fixed":"4.0.4"}],"source":"CPE_FIELD"}}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-28346.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}