CVE-2022-34265

Critical

Description

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. The Trunc() and Extract() database functions are subject to SQL injection if untrusted data is used as a kind/lookup_name value. Applications that constrain the lookup name and kind choice to a known safe list are unaffected.

SeverityCritical
CVSS9.8
Exploit probability—
ProductDjango
PublishedJul 4, 2022
First seenJul 4, 2022

How to fix

Affected products

ProductAffected versionsFixed in
djangoproject django3.2 ≤ v < 3.2.14, 4.0 ≤ v < 4.0.63.2.14, 4.0.6
djangoPyPI3.2a1 ≤ v < 3.2.14, 4.0a1 ≤ v < 4.0.6, 3.2 ≤ v < 3.2.14, 4.0 ≤ v < 4.0.63.2.14, 4.0.6

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-34265 · Django · Dark Radar