{"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-07-15T10:14:47.339801552Z","published":"2022-04-12T00:00:00Z","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","openSUSE-SU-2026:11235-1","openSUSE-SU-2026:11270-1"],"database_specific":{"unresolved_ranges":[{"extracted_events":[{"introduced":"2.2"},{"fixed":"2.2.28"},{"introduced":"3.2"},{"fixed":"3.2.13"},{"introduced":"4.0"},{"fixed":"4.0.4"}],"source":"DESCRIPTION"}],"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/28xxx/CVE-2022-28346.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2022/04/11/1"},{"type":"WEB","url":"https://docs.djangoproject.com/en/4.0/releases/security/"},{"type":"WEB","url":"https://groups.google.com/forum/#%21forum/django-announce"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/28xxx/CVE-2022-28346.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28346"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220609-0002/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5254"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00013.html"},{"type":"ARTICLE","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":{"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_RANGE","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-28346.json"}}],"schema_version":"1.7.5"}