CVE-2022-34265

python-django: Potential SQL injection via Trunc(kind) and Extract(lookup_name) arguments

Published Jul 4, 2022 CVSS 3.1 · 9.8 Critical EPSS 73.6% KEV · Not listed
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.

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3164-1 python-django security update
Debian DSA Debian DSA DSA-5254-1 python-django security update
Github GHSA Github GHSA GHSA-p64x-8rxx-wf6q Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection
Ubuntu USN Ubuntu USN USN-5501-1 Django vulnerability
History

No history.

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Feb 13, 2025, 4:32 PM
Reserved
Jun 21, 2022, 12:00 AM
Status
Modified
Published
Jul 4, 2022, 4:15 PM
Modified
Jun 17, 2026, 4:50 AM
Severity
Important
Public date
Jul 4, 2022, 8:00 AM