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 functions are subject to SQL injection if...
- Published
- Jul 4, 2022
- Updated
- Feb 13, 2025
- Assigning CNA
- mitre
- Evidence observed
- Aug 8, 2026
Primary CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HHigh · next 30 days
- Percentile
- 99.5%
- Model date
- Oct 17, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
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.
Sources
django/CVE-2022-34265
Django Trunc(kind) and Extract(lookup_name) SQL Injection (CVE-2022-34265)
Vulhub vulnerability labsDeclared conditions
- lab image version: vulhub/django:4.0.5(django/CVE-2022-34265/docker-compose.yml:services.web.image)
- lab image version: postgres:13-alpine(django/CVE-2022-34265/docker-compose.yml:services.db.image)
PoC for CVE-2022-34265 (Django)
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.