Critical severityNVD Advisory· Published Apr 12, 2022· Updated Feb 13, 2025
CVE-2022-28347
CVE-2022-28347
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
DjangoPyPI | >= 2.2, < 2.2.28 | 2.2.28 |
DjangoPyPI | >= 3.2, < 3.2.13 | 3.2.13 |
DjangoPyPI | >= 4.0, < 4.0.4 | 4.0.4 |
Affected products
8- osv-coords7 versionspkg:bitnami/djangopkg:pypi/djangopkg:rpm/opensuse/python-Django4&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-Django6&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/python-Django&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/python-Django&distro=openSUSE%20Tumbleweedpkg:rpm/suse/python-Django&distro=SUSE%20Package%20Hub%2015%20SP3
>= 2.2.0, < 2.2.28+ 6 more
- (no CPE)range: >= 2.2.0, < 2.2.28
- (no CPE)range: >= 2.2, < 2.2.28
- (no CPE)range: < 4.2.14-1.1
- (no CPE)range: < 6.0-1.1
- (no CPE)range: < 2.2.28-bp153.2.3.1
- (no CPE)range: < 4.0.4-1.1
- (no CPE)range: < 2.2.28-bp153.2.3.1
Patches
Vulnerability mechanics
References
19- github.com/advisories/GHSA-w24h-v9qh-8gxjghsaADVISORY
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/mitrevendor-advisory
- nvd.nist.gov/vuln/detail/CVE-2022-28347ghsaADVISORY
- www.debian.org/security/2022/dsa-5254ghsavendor-advisoryWEB
- www.openwall.com/lists/oss-security/2022/04/11/1ghsaWEB
- docs.djangoproject.com/en/4.0/releases/securityghsaWEB
- github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402ghsaWEB
- github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5ghsaWEB
- github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81ghsaWEB
- github.com/django/django/commit/9e19accb6e0a00ba77d5a95a91675bf18877c72dghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-191.yamlghsaWEB
- groups.google.com/forum/ghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IKghsaWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQIghsaWEB
- www.djangoproject.com/weblog/2022/apr/11/security-releasesghsaWEB
- docs.djangoproject.com/en/4.0/releases/security/mitre
- groups.google.com/forum/mitre
- www.djangoproject.com/weblog/2022/apr/11/security-releases/mitre
News mentions
0No linked articles in our index yet.