{"id":"CVE-2022-28347","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.","aliases":["BIT-django-2022-28347","GHSA-w24h-v9qh-8gxj","PYSEC-2022-191"],"modified":"2026-11-16T10:45:08.760863800Z","published":"2022-04-12T00:00:00Z","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"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/28xxx/CVE-2022-28347.json","cna_assigner":"mitre"},"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/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/django/django","events":[{"introduced":"635d53a86a36cde7866b9caefeb64d809e6bfcd9"},{"fixed":"5c3300027b30c1b498d99010f7d618316f685045"},{"introduced":"b6475d7d7940f3ce575e0b0f2d83e517f899b4cf"},{"fixed":"08e6073f878264a0c091da0d3db456820252ef6c"},{"introduced":"ef62a3a68c9d558486145a42c0d71ea9a76add9e"},{"fixed":"89807fbde8b7b17d00434bc4695535855e96fe77"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","range":[{"introduced":"2.2"},{"fixed":"2.2.28"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","range":[{"introduced":"3.2"},{"fixed":"3.2.13"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","range":[{"introduced":"4.0"},{"fixed":"4.0.4"}]}]}}],"versions":["2.2.27","3.2.12","3.2.11","2.2.26","2.2.25","3.2.10","3.2.9","3.2.8","3.2.7","3.2.6","3.2.5","3.2.4","2.2.24","2.2.23","3.2.3","2.2.22","3.2.2","3.2.1","2.2.21","3.2","2.2.20","2.2.19","2.2.18","2.2.17","2.2.16","2.2.15","2.2.14","2.2.13","2.2.12","2.2.11","2.2.10","2.2.9","2.2.8","2.2.7","2.2.6","2.2.5","2.2.4","2.2.3","2.2.2","2.2.1","2.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-28347.json"}}],"schema_version":"1.9.2"}