1. Home
  2. Vulnerabilities
  3. CVE-2022-34265

CVE-2022-34265

An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. The Trunc() and Extract() database…

Published 4 Jul 2022 · modified 17 Jun 2026 · Sources: NVD, EPSS (FIRST)

High 67/100

Summary

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.

Affected products and versions

Djangoproject (2 line(s))
Djangoproject
ProductVersionsFixed inSource
Django from 3.2 (included) to 3.2.14 (excluded) — NVD
Django from 4.0 (included) to 4.0.6 (excluded) — NVD

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
NVD
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, NVD)
Weakness
CWE-89 · Injection SQL

How this data is obtained and calculated