{"id":"OESA-2022-1642","summary":"python-django security update","details":"A high-level Python Web framework that encourages rapid development and clean, pragmatic design.\r\n\r\nSecurity Fix(es):\r\n\r\nAn 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.(CVE-2022-28346)\nA 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.(CVE-2022-28347)","modified":"2026-03-11T06:04:28.414787Z","published":"2022-05-11T11:03:45Z","upstream":["CVE-2022-28346","CVE-2022-28347"],"database_specific":{"severity":"Critical"},"references":[{"type":"ADVISORY","url":"https://www.openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2022-1642"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28346"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-28347"}],"affected":[{"package":{"name":"python-django","ecosystem":"openEuler:20.03-LTS-SP1","purl":"pkg:rpm/openEuler/python-django&distro=openEuler-20.03-LTS-SP1"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.27-2.oe1"}]}],"ecosystem_specific":{"noarch":["python-django-help-2.2.27-2.oe1.noarch.rpm","python3-Django-2.2.27-2.oe1.noarch.rpm"],"src":["python-django-2.2.27-2.oe1.src.rpm"]},"database_specific":{"source":"https://repo.openeuler.org/security/data/osv/OESA-2022-1642.json"}},{"package":{"name":"python-django","ecosystem":"openEuler:20.03-LTS-SP3","purl":"pkg:rpm/openEuler/python-django&distro=openEuler-20.03-LTS-SP3"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.27-2.oe1"}]}],"ecosystem_specific":{"noarch":["python-django-help-2.2.27-2.oe1.noarch.rpm","python3-Django-2.2.27-2.oe1.noarch.rpm"],"src":["python-django-2.2.27-2.oe1.src.rpm"]},"database_specific":{"source":"https://repo.openeuler.org/security/data/osv/OESA-2022-1642.json"}},{"package":{"name":"python-django","ecosystem":"openEuler:22.03-LTS","purl":"pkg:rpm/openEuler/python-django&distro=openEuler-22.03-LTS"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.27-2.oe2203"}]}],"ecosystem_specific":{"noarch":["python-django-help-2.2.27-2.oe2203.noarch.rpm","python3-Django-2.2.27-2.oe2203.noarch.rpm"],"src":["python-django-2.2.27-2.oe2203.src.rpm"]},"database_specific":{"source":"https://repo.openeuler.org/security/data/osv/OESA-2022-1642.json"}}],"schema_version":"1.7.5"}