CVE-2022-28346
python-django - security update
9.8
CRITICAL
CVSS 3.1
EPSS 2.0%
Description
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.
How to fix CVE-2022-28346
To remediate CVE-2022-28346, upgrade the affected package to a fixed version below.
- Bitnami/django—upgrade to 2.2.28 or later
- —upgrade to 2:2.2.28-1~deb11u1 or later
- —upgrade to 1:1.10.7-2+deb9u16 or later
- —upgrade to 2.2.28 or later
- —upgrade to 4.0.4 or later
Is CVE-2022-28346 being exploited?
Low — EPSS is 2.0%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- >= 2.2.0, < 2.2.28, >= 3.2.0, < 3.2.13, >= 4.0.0, < 4.0.4
- from 0, < 2:2.2.28-1~deb11u1
- from 0, < 1:1.10.7-2+deb9u16
- >= 2.2, < 2.2.28
- >= 4.0, < 4.0.4, >= 3.2, < 3.2.13, >= 2.2, < 2.2.28
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |