Skip to content
Emerging threatsCritical

CVE-2022-34265Django SQL Injection

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

Published Jul 4, 2022 · Updated Nov 23, 2026 · Also known as ALPINE-CVE-2022-34265, BIT-django-2022-34265, CLEANSTART-2024-BV07404, DEBIAN-CVE-2022-34265, GHSA-p64x-8rxx-wf6q, MGASA-2022-0281, PYSEC-2022-213, TR-22-0477, UBUNTU-CVE-2022-34265, USN-5501-1, openSUSE-SU-2024:12172-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.

Scores

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

Exploit maturity

None known

ATLAS score

36/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

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

194 affected entries in total
ProductAffected versionsFixed in
DjangoDjangoproject>= 3.2.0, >= 3.2a1, >= 4.0a13.2.14
python-DjangoarchSee advisory4.0.6-1
py3-djangoalpineSee advisory3.2.14-r0
python-Django4opensuseSee advisory4.2.14-1.1
python-Django5opensuseSee advisory5.2.16-1.1
20 more affected products in the full CVE brief

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, 4.0.post3+tuxcare

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, 3.2.15-1.mga8, 4.0.6-1, 1.11.29-3.42.1, 4.0.6-1.1, 5.1.5-1.1

Timeline

  1. Publicly disclosed

    Jul 4, 2022

  2. Last updated

    Nov 23, 2026

Weakness Type

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

FAQ

Common Questions.

Is CVE-2022-34265 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.