Vulnerability · Published Jul 4, 2022 · Assigned by mitre
CVE-2022-34265
Critical 9.8
In plain English
A critical-severity security flaw in the py3-django package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 73.6% (higher than 99.5% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)73.6%top 0.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-django | 3.2.14-r0 | ALPINE-CVE-2022-34265 |
| Alpine:v3.21 | py3-django | 3.2.14-r0 | ALPINE-CVE-2022-34265 |
| Alpine:v3.22 | py3-django | 3.2.14-r0 | ALPINE-CVE-2022-34265 |
| Alpine:v3.23 | py3-django | 3.2.14-r0 | ALPINE-CVE-2022-34265 |
| Alpine:v3.24 | py3-django | 3.2.14-r0 | ALPINE-CVE-2022-34265 |
| Debian:12 | python-django | 2:4.0.6-1 | DEBIAN-CVE-2022-34265 |
| Debian:13 | python-django | 2:4.0.6-1 | DEBIAN-CVE-2022-34265 |
| Debian:14 | python-django | 2:4.0.6-1 | DEBIAN-CVE-2022-34265 |
| PyPI | django | 3.2.14 | GHSA-p64x-8rxx-wf6q |
| PyPI | django | 3.2.14, 4.0.6 | PYSEC-2022-213 |
| PyPI | django | 4.0.6 | GHSA-p64x-8rxx-wf6q |
| Rocky Linux:8 | libdb | 0:5.3.28-42.el8_4 | RLSA-2022:8506 |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.1 | USN-5501-1 |
| Ubuntu:22.04:LTS | python-django | 2:3.2.12-2ubuntu1.1 | UBUNTU-CVE-2022-34265 |
Affected products (as reported)
References
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://www.djangoproject.com/weblog/2022/jul/04/security-releases/
- https://security.netapp.com/advisory/ntap-20220818-0006/
- DSA-5254 vendor-advisory
- FEDORA-2023-8fed428c5e vendor-advisory
- FEDORA-2023-a53ab7c969 vendor-advisory