CVE-2022-34265 · CRITICAL (CVSS 9.8)
Summary: An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6.
Details
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.
Severity
CRITICAL (CVSS 9.8) — vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected packages
- PyPI django [3.2a1 – 3.2.14]
- PyPI django [4.0a1 – 4.0.6]
- GIT github.com/django/django [b6475d7d7940f3ce575e0b0f2d83e517f899b4cf – 746e88cc634469112b823225c19d75c7362f8ecf] [ef62a3a68c9d558486145a42c0d71ea9a76add9e – caad462feaa84ba78ed658a9595a4a4363dad2db]
References
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/34xxx/CVE-2022-34265.json
- 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
- https://security.netapp.com/advisory/ntap-20220818-0006/
- https://www.debian.org/security/2022/dsa-5254
- https://www.djangoproject.com/weblog/2022/jul/04/security-releases/