CVE-2022-34265
CVE-2022-34265
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 9.8 · Critical · EPSS 73.6% · Fix available
- Published
- Updated
Affected products and versions
n/a
- Versions
- n/a: Affected
No fix published
python-django Debian:12
- Affected ranges
- ECOSYSTEM: < 2:4.0.6-1
Update to 2:4.0.6-1
python-django Debian:13
- Affected ranges
- ECOSYSTEM: < 2:4.0.6-1
Update to 2:4.0.6-1
python-django Debian:14
- Affected ranges
- ECOSYSTEM: < 2:4.0.6-1
Update to 2:4.0.6-1
django PyPI
- Versions
- 3.2
- 3.2.1
- 3.2.10
- 3.2.11
- 3.2.12
- 3.2.13
- 3.2.2
- 3.2.3
- 3.2.4
- 3.2.5
- 3.2.6
- 3.2.7
- 3.2.8
- 3.2.9
- 3.2a1
- 3.2b1
- 3.2rc1
- Affected ranges
- ECOSYSTEM: ≥ 3.2a1, < 3.2.14
Update to 3.2.14
django PyPI
- Versions
- 4.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- 4.0a1
- 4.0b1
- 4.0rc1
- Affected ranges
- ECOSYSTEM: ≥ 4.0a1, < 4.0.6
Update to 4.0.6
django PyPI
- Versions
- 3.2
- 3.2.1
- 3.2.10
- 3.2.11
- 3.2.12
- 3.2.13
- 3.2.2
- 3.2.3
- 3.2.4
- 3.2.5
- 3.2.6
- 3.2.7
- 3.2.8
- 3.2.9
- 4.0
- 4.0.1
- 4.0.2
- 4.0.3
- 4.0.4
- 4.0.5
- Affected ranges
- ECOSYSTEM: ≥ 3.2, < 3.2.14 ∪ ≥ 4.0, < 4.0.6
Update to 3.2.14; Update to 4.0.6
python-django Ubuntu:18.04:LTS
- Versions
- 1:1.11.4-1ubuntu1
- 1:1.11.6-1ubuntu1
- 1:1.11.9-1ubuntu1
- 1:1.11.11-1ubuntu1
- 1:1.11.11-1ubuntu1.1
- 1:1.11.11-1ubuntu1.2
- 1:1.11.11-1ubuntu1.3
- 1:1.11.11-1ubuntu1.4
- 1:1.11.11-1ubuntu1.5
- 1:1.11.11-1ubuntu1.6
- 1:1.11.11-1ubuntu1.7
- 1:1.11.11-1ubuntu1.8
- 1:1.11.11-1ubuntu1.9
- 1:1.11.11-1ubuntu1.10
- 1:1.11.11-1ubuntu1.11
- 1:1.11.11-1ubuntu1.12
- 1:1.11.11-1ubuntu1.13
- 1:1.11.11-1ubuntu1.14
- 1:1.11.11-1ubuntu1.15
- 1:1.11.11-1ubuntu1.16
- 1:1.11.11-1ubuntu1.17
- Affected ranges
- ECOSYSTEM: < 1:1.11.11-1ubuntu1.18
Update to 1:1.11.11-1ubuntu1.18
python-django Ubuntu:20.04:LTS
- Versions
- 1:1.11.22-1ubuntu1
- 2:2.2.6-1ubuntu1
- 2:2.2.9-2ubuntu1
- 2:2.2.10-1
- 2:2.2.10-1ubuntu1
- 2:2.2.11-1
- 2:2.2.12-1
- 2:2.2.12-1ubuntu0.1
- 2:2.2.12-1ubuntu0.2
- 2:2.2.12-1ubuntu0.3
- 2:2.2.12-1ubuntu0.4
- 2:2.2.12-1ubuntu0.5
- 2:2.2.12-1ubuntu0.6
- 2:2.2.12-1ubuntu0.7
- 2:2.2.12-1ubuntu0.8
- 2:2.2.12-1ubuntu0.9
- 2:2.2.12-1ubuntu0.10
- 2:2.2.12-1ubuntu0.11
- Affected ranges
- ECOSYSTEM: < 2:2.2.12-1ubuntu0.12
Update to 2:2.2.12-1ubuntu0.12
python-django Ubuntu:22.04:LTS
- Versions
- 2:2.2.24-1ubuntu1
- 2:3.2.12-2
- 2:3.2.12-2ubuntu1
- Affected ranges
- ECOSYSTEM: < 2:3.2.12-2ubuntu1.1
Update to 2:3.2.12-2ubuntu1.1
Original sources
- 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/
- https://www.debian.org/security/2022/dsa-5254
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
- https://nvd.nist.gov/vuln/detail/CVE-2022-34265