CVE-2022-34265
Django vulnerability analysis and mitigation

Overview

A high-severity SQL injection vulnerability (CVE-2022-34265) was discovered in Django versions 3.2 before 3.2.14 and 4.0 before 4.0.6. The vulnerability affects the Trunc() and Extract() database functions when untrusted data is used as a kind/lookup_name value. The issue was discovered and disclosed on July 4, 2022 (Django Security).

Technical details

The vulnerability exists in the Trunc() and Extract() database functions of Django, where SQL injection is possible if untrusted data is used as a kind/lookup_name value. The issue received a CVSS score of 9.8 (CRITICAL) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NetApp Security).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). Applications that constrain the lookup name and kind choice to a known safe list are unaffected (Django Security, NetApp Security).

Mitigation and workarounds

The issue has been fixed in Django versions 4.0.6 and 3.2.14. Users are strongly encouraged to upgrade to these patched versions as soon as possible. The fixes have been applied to Django's main branch and to the 4.1, 4.0, and 3.2 release branches (Django Security).

Community reactions

The Django team classified this vulnerability as 'high' severity according to their security policy. The discovery was credited to Takuto Yoshikai from Aeye Security Lab (Django Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management