Vulnerability · Published Apr 12, 2022 · Assigned by mitre
CVE-2022-28347
Critical 9.8
In plain English
A critical-severity security flaw in the py3-django package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)2.9%top 12.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-django | 3.2.13-r0 | ALPINE-CVE-2022-28347 |
| Alpine:v3.21 | py3-django | 3.2.13-r0 | ALPINE-CVE-2022-28347 |
| Alpine:v3.22 | py3-django | 3.2.13-r0 | ALPINE-CVE-2022-28347 |
| Alpine:v3.23 | py3-django | 3.2.13-r0 | ALPINE-CVE-2022-28347 |
| Alpine:v3.24 | py3-django | 3.2.13-r0 | ALPINE-CVE-2022-28347 |
| Debian:12 | python-django | 2:3.2.13-1 | DEBIAN-CVE-2022-28347 |
| Debian:13 | python-django | 2:3.2.13-1 | DEBIAN-CVE-2022-28347 |
| Debian:14 | python-django | 2:3.2.13-1 | DEBIAN-CVE-2022-28347 |
| PyPI | django | 2.2.28 | GHSA-w24h-v9qh-8gxj |
| PyPI | django | 3.2.13 | GHSA-w24h-v9qh-8gxj |
| PyPI | django | 4.0.4 | GHSA-w24h-v9qh-8gxj |
| PyPI | django | 2.2.28, 3.2.13, 4.0.4 | PYSEC-2022-191 |
| Rocky Linux:8 | libdb | 0:5.3.28-42.el8_4 | RLSA-2022:5498 |
Affected products (as reported)
References
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/4.0/releases/security/
- http://www.openwall.com/lists/oss-security/2022/04/11/1
- https://www.djangoproject.com/weblog/2022/apr/11/security-releases/
- DSA-5254 vendor-advisory
- FEDORA-2023-8fed428c5e vendor-advisory
- FEDORA-2023-a53ab7c969 vendor-advisory