PyPI: django

CVE-2022-34265

Safety vulnerability ID: SFTY-20220704-56575

Safety legacy ID: pyup.io-49733

Django 3.2.14 and 4.0.6 include a fix for CVE-2022-34265: Potential SQL injection via Trunc(kind) and Extract(lookup_name) arguments. https://www.djangoproject.com/weblog/2022/jul/04/security-releases

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection

Advisory

Django 3.2.14 and 4.0.6 include a fix for CVE-2022-34265: Potential SQL injection via Trunc(kind) and Extract(lookup_name) arguments. https://www.djangoproject.com/weblog/2022/jul/04/security-releases

Affected Package

Affecting django package, versions<3.2.14>=4.0a1,<4.0.6

Also affects

---

How to Fix

Upgradedjangoto3.2.144.0.6or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more