CVE-2022-34265
highpriority · attend · 75EPSS 0.736 · 99 %ileexploit · PoCDEEURUUSEPSS · scored 2026-10-27
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.
remediations
Vendor fix, mitigation, or workaround guidance, as published by each source.
A vendor fix is available.
- Fixedpython-django-0:3.2.14-3.el8ui.src as a component of RHUI 4 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258 RHUI services must be restarted for this update to take effect. To restart them, run the following command on the RHUA node as root: # rhui-services-restart For other information, consult the product documentation at: https://access.redhat.com/documentation/en-us/red_hat_update_infrastructure/4
https://access.redhat.com/errata/RHSA-2022:5738 - Fixedpython38-django-0:3.2.14-3.el8ui.noarch as a component of RHUI 4 for RHEL 8redhat_csaf
Before applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258 RHUI services must be restarted for this update to take effect. To restart them, run the following command on the RHUA node as root: # rhui-services-restart For other information, consult the product documentation at: https://access.redhat.com/documentation/en-us/red_hat_update_infrastructure/4
https://access.redhat.com/errata/RHSA-2022:5738 - Fixedpython312-Django6-0:6.0-1.1.aarch64 as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython312-Django6-0:6.0-1.1.ppc64le as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython312-Django6-0:6.0-1.1.s390x as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython312-Django6-0:6.0-1.1.x86_64 as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython313-Django6-0:6.0-1.1.aarch64 as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython313-Django6-0:6.0-1.1.ppc64le as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython313-Django6-0:6.0-1.1.s390x as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
- Fixedpython313-Django6-0:6.0-1.1.x86_64 as component of openSUSE Tumbleweedsuse_csaf
To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6.3–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (5)
Public proof-of-concept and weaponised exploit code.
- ZhaoQi99/CVE-2022-34265PoC for CVE-2022-34265PoC · poc_in_github
- aeyesec/CVE-2022-34265PoC for CVE-2022-34265 (Django)PoC · poc_in_github
- lnwza0x0a/CTF_Django_CVE-2022-34265lnwza0x0a/CTF_Django_CVE-2022-34265PoC · poc_in_github
- traumatising/CVE-2022-34265CVE-2022-34265 Vulnerability PoC · poc_in_github
affected products (24)
Products and version ranges known to be affected.
advisories (6)
Vendor and ecosystem advisories describing this.
- RHSA-2022:5738Red Hat Security Advisory: Django 3.2.14 Security Update2022-07-27csaf · redhat_csafUS
A security fix for a CVE in the Django library is now available.
- WID-SEC-W-2022-0847Red Hat Enterprise Linux (Django): Schwachstelle ermöglicht Manipulation von DateienDeutsch2022-07-27csaf · cert_bundDE
Ein entfernter, anonymer Angreifer kann eine Schwachstelle in Red Hat Enterprise Linux in der Komponente Django ausnutzen, um Dateien zu manipulieren.
- openSUSE-SU-2026:10005-1python312-Django6-6.0-1.1 on GA media2026-01-03csaf · suse_csafDE
python312-Django6-6.0-1.1 on GA media
- GHSA-p64x-8rxx-wf6qDjango `Trunc()` and `Extract()` database functions vulnerable to SQL Injection2022-07-05ghsa · osvUS
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.
- BIT-django-2022-342652024-03-06vendor · osvUS
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.
- PYSEC-2022-2132022-07-04vendor · osvUS
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.
also known as (8)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (33)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2022-34265cnnvd
- https://cxsecurity.com/cveshow/CVE-2022-34265/cnnvd
- https://docs.djangoproject.com/en/4.0/releases/security/cnnvd
- https://groups.google.com/forum/#!forum/django-announcecnnvd
- https://jvndb.jvn.jp/en/contents/2022/JVNDB-2022-000053.htmlcnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/cnnvd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/cnnvd
- https://packetstormsecurity.com/files/167695/Ubuntu-Security-Notice-USN-5501-1.htmlcnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan