{"schema_version":"1.9.0","id":"CVE-2022-28347","published":"2022-04-12T00:00:00Z","modified":"2026-08-12T03:51:41.303194334Z","aliases":["BIT-django-2022-28347","GHSA-w24h-v9qh-8gxj","PYSEC-2022-191"],"related":["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"],"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.","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_RANGE"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-28347.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-28347.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-28347"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5254"},{"type":"ARTICLE","url":"https://www.djangoproject.com/weblog/2022/apr/11/security-releases/"}],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/28xxx/CVE-2022-28347.json","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"}]}}