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—
ProductDjango
PublishedApr 12, 2022
First seenApr 12, 2022

How to fix

Affected products

ProductAffected versionsFixed in
djangoproject django2.2 ≤ v < 2.2.28, 3.2 ≤ v < 3.2.13, 4.0 ≤ v < 4.0.42.2.28, 3.2.13, 4.0.4
debian debian_linux9.0, 11.0—
djangoPyPI2.2 ≤ v < 2.2.28, 3.2 ≤ v < 3.2.13, 4.0 ≤ v < 4.0.42.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.

CVE-2022-28346 · Django · Dark Radar