{"id":"CVE-2022-28346","state":"PUBLISHED","title":"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 ","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.","publishedAt":"2022-04-12T00:00:00.000Z","updatedAt":"2025-02-13T16:32:33.638Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://groups.google.com/forum/#%21forum/django-announce","https://docs.djangoproject.com/en/4.0/releases/security/","http://www.openwall.com/lists/oss-security/2022/04/11/1","https://www.djangoproject.com/weblog/2022/apr/11/security-releases/","https://lists.debian.org/debian-lts-announce/2022/04/msg00013.html","https://security.netapp.com/advisory/ntap-20220609-0002/","https://www.debian.org/security/2022/dsa-5254","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/"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:55.027Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/28xxx/CVE-2022-28346.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-28346","state":"PUBLISHED","datePublished":"2022-04-12T00:00:00.000Z","dateUpdated":"2025-02-13T16:32:33.638Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2022-04-02T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce"},{"url":"https://docs.djangoproject.com/en/4.0/releases/security/"},{"url":"http://www.openwall.com/lists/oss-security/2022/04/11/1"},{"url":"https://www.djangoproject.com/weblog/2022/apr/11/security-releases/"},{"url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00013.html","name":"[debian-lts-announce] 20220414 [SECURITY] [DLA 2982-1] python-django security update","tags":["mailing-list"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0002/"},{"url":"https://www.debian.org/security/2022/dsa-5254","name":"DSA-5254","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/","name":"FEDORA-2023-8fed428c5e","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/","name":"FEDORA-2023-a53ab7c969","tags":["vendor-advisory"]}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2023-04-28T03:06:20.960Z"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["x_transferred"]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security/","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2022/04/11/1","tags":["x_transferred"]},{"url":"https://www.djangoproject.com/weblog/2022/apr/11/security-releases/","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00013.html","name":"[debian-lts-announce] 20220414 [SECURITY] [DLA 2982-1] python-django security update","tags":["mailing-list","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0002/","tags":["x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5254","name":"DSA-5254","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/","name":"FEDORA-2023-8fed428c5e","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/","name":"FEDORA-2023-a53ab7c969","tags":["vendor-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T05:56:14.796Z"}}]}}}