CVE-2022-28346
Critical
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.
SeverityCritical
CVSS9.8
Exploit probability—
Product
Django
PublishedApr 12, 2022
First seenApr 12, 2022
How to fix
Update
- djangoproject django2.2.28, 3.2.13, 4.0.4 or later
- django2.2.28, 3.2.13, 4.0.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| djangoproject django | 2.2 ≤ v < 2.2.28, 3.2 ≤ v < 3.2.13, 4.0 ≤ v < 4.0.4 | 2.2.28, 3.2.13, 4.0.4 |
| debian debian_linux | 9.0, 11.0 | — |
| djangoPyPI | 2.2 ≤ v < 2.2.28, 3.2 ≤ v < 3.2.13, 4.0 ≤ v < 4.0.4 | 2.2.28, 3.2.13, 4.0.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.