{"id":"CVE-2022-28346","published":"2022-04-12T00:00:00Z","modified":"2025-02-13T16:32:33Z","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","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.18661,"percentile":0.97261,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":[]},{"url":"https://docs.djangoproject.com/en/4.0/releases/security/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2022/04/11/1","tags":[]},{"url":"https://www.djangoproject.com/weblog/2022/apr/11/security-releases/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00013.html","tags":["mailing-list"]},{"url":"https://security.netapp.com/advisory/ntap-20220609-0002/","tags":[]},{"url":"https://www.debian.org/security/2022/dsa-5254","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/","tags":["vendor-advisory"]}],"priority":{"score":24.5,"factors":[{"name":"EPSS percentile","points":19.45},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":4,"skipped":0,"earliest":"2022-04-25","earliestUrl":"https://github.com/YouGina/CVE-2022-28346","repos":[{"name":"DeEpinGh0st/CVE-2022-28346","url":"https://github.com/DeEpinGh0st/CVE-2022-28346","stars":24,"created":"2022-04-26"},{"name":"YouGina/CVE-2022-28346","url":"https://github.com/YouGina/CVE-2022-28346","stars":2,"created":"2022-04-25"},{"name":"kamal-marouane/CVE-2022-28346","url":"https://github.com/kamal-marouane/CVE-2022-28346","stars":1,"created":"2024-01-19"},{"name":"vincentinttsh/CVE-2022-28346","url":"https://github.com/vincentinttsh/CVE-2022-28346","stars":0,"created":"2023-03-04"}]},"first":{"date":"2022-04-25","source":"PoC-in-GitHub","url":"https://github.com/YouGina/CVE-2022-28346"},"provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=2.2, <2.2.28",">=3.2, <3.2.13",">=4.0, <4.0.4"],"patched":["2.2.28","3.2.13","4.0.4"],"from":["GHSA-2gwj-7jmv-h26r","PYSEC-2022-190"],"provenance":"source"}],"euvd":{"id":"EUVD-2022-0087","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-45452","published":"2022-01-04","fixed":"4.0.1","kev":false},{"cve":"CVE-2022-22818","published":"2022-02-03","fixed":"4.0.2","kev":false},{"cve":"CVE-2022-23833","published":"2022-02-03","fixed":"4.0.2","kev":false,"link":{"from":"CVE-2022-23833","to":"CVE-2022-28346","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"2.2.27","toFixed":"2.2.28","daysApart":68},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"3.2.12","toFixed":"3.2.13","daysApart":68}]}},{"cve":"CVE-2022-28346","published":"2022-04-12","fixed":"4.0.4","kev":false},{"cve":"CVE-2022-28347","published":"2022-04-12","fixed":"4.0.4","kev":false},{"cve":"CVE-2022-34265","published":"2022-07-04","fixed":"4.0.6","kev":false,"link":{"from":"CVE-2022-28346","to":"CVE-2022-34265","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"3.2.13","toFixed":"3.2.14","daysApart":83},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"4.0.4","toFixed":"4.0.6","daysApart":83}]}},{"cve":"CVE-2022-36359","published":"2022-08-03","fixed":"4.0.7","kev":false}],"package":"PyPI:Django"}}