CVE-2022-34265
CriticalDjango Trunc() and Extract() database functions vulnerable to SQL Injection
Published Jul 5, 2022 · Updated Oct 8, 2026 · Also known as BIT-django-2022-34265, DEBIAN-CVE-2022-34265, GHSA-p64x-8rxx-wf6q, PYSEC-2022-213, TR-22-0477, UBUNTU-CVE-2022-34265, USN-5501-1
Key Facts
Patch immediately- CVE-2022-34265 is a critical-severity vulnerability (CVSS 9.3 v4) affecting Django (Djangoproject), python-Django (arch), py3-django (alpine) and 22 more products.
- It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
- EPSS estimates a 74% probability of exploitation in the next 30 days.
- Fixed versions are available, including ardana-ansible 8.0+git.1660773729.3789a6d-3.85.1, ardana-ansible 9.0+git.1660748476.c118d23-3.32.1, ardana-cobbler 8.0+git.1660773402.d845a45-3.47.1.
- Brandefense priority: patch immediately, because it is very likely to be exploited soon.
CVSS v4
9.3
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS (30-day exploit likelihood)
74%
Higher than 99.4% of all scored CVEs
Exploited in the wild
No known
Not in a known-exploited catalog
Public exploit code
None known
Get the full CVE-2022-34265 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Affected Products
187 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| DjangoDjangoproject | >= 3.2.0, >= 3.2a1, >= 4.0a1 | 3.2.14 |
| python-Djangoarch | See advisory | 4.0.6-1 |
| py3-djangoalpine | See advisory | 3.2.14-r0 |
| ardana-ansiblesuse | See advisory | 8.0+git.1660773729.3789a6d-3.85.1 |
| ardana-cobblersuse | See advisory | 8.0+git.1660773402.d845a45-3.47.1 |
Patched Releases
ardana-ansible
8.0+git.1660773729.3789a6d-3.85.1, 9.0+git.1660748476.c118d23-3.32.1
ardana-cobbler
8.0+git.1660773402.d845a45-3.47.1, 9.0+git.1660747489.119efcd-3.19.1
ardana-tempest
9.0+git.1651855288.a2341ad-3.22.1
Django
3.2.14, 4.0.6
grafana
6.7.4-3.29.1, 6.7.4-4.23.1
openstack-heat-templates
0.0.0+git.1654529662.75fa04a-3.27.1, 0.0.0+git.1654529662.75fa04a7-3.15.1
openstack-horizon-plugin-gbp-ui
14.0.1~dev4-3.12.1
openstack-murano
4.0.2~dev3-3.12.1
openstack-murano-api
4.0.2~dev3-3.12.1
openstack-murano-doc
4.0.2~dev3-3.12.1
openstack-murano-engine
4.0.2~dev3-3.12.1
openstack-neutron-gbp
14.0.1~dev46-3.34.1
openstack-nova
18.3.1~dev92-3.43.1
openstack-nova-api
18.3.1~dev92-3.43.1
openstack-nova-cells
18.3.1~dev92-3.43.1
openstack-nova-compute
18.3.1~dev92-3.43.1
openstack-nova-conductor
18.3.1~dev92-3.43.1
openstack-nova-console
18.3.1~dev92-3.43.1
openstack-nova-novncproxy
18.3.1~dev92-3.43.1
openstack-nova-placement-api
18.3.1~dev92-3.43.1
openstack-nova-scheduler
18.3.1~dev92-3.43.1
openstack-nova-serialproxy
18.3.1~dev92-3.43.1
openstack-nova-vncproxy
18.3.1~dev92-3.43.1
py3-django
3.2.14-r0
python-Django
0:3.2.14-3.el8ui, 1:1.11.11-1ubuntu1.18, 1:1.11.29-1+deb10u2, 2:2.2.12-1ubuntu0.12, 2:2.2.28-1~deb11u1, 2:3.2.12-2ubuntu1.1, 2:4.0.6-1, 4.0.6-1, 1.11.29-3.42.1
Timeline
Publicly disclosed
Jul 5, 2022
Last updated
Oct 8, 2026
Weakness Type
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
- advisoryRHSA-2022:5738
- advisoryRHSA-2022:8506
- advisoryhttps://bugzilla.suse.com/1157665
- advisoryhttps://bugzilla.suse.com/1164139
- advisoryhttps://bugzilla.suse.com/1191454
FAQ
Common Questions.
An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6.
Affected: Django (Djangoproject) versions >= 3.2.0, >= 3.2a1, >= 4.0a1; python-Django (arch); py3-django (alpine), among others. The full list is in the CVE brief.
It is not listed in any known-exploited vulnerabilities catalog.
No, it is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
No public exploit code is known.
Fixed versions are available, including ardana-ansible 8.0+git.1660773729.3789a6d-3.85.1, ardana-ansible 9.0+git.1660748476.c118d23-3.32.1, ardana-cobbler 8.0+git.1660773402.d845a45-3.47.1.
Brandefense priority: patch immediately, because it is very likely to be exploited soon.
Is CVE-2022-34265 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo