PYSEC-2022-213
Dashboard / Vulnerabilities / PYSEC-2022-213
PYSEC-2022-213
Published: 4 Jul 2022Last Modified: 6 Dec 2023
Summary:
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.
References: https://www.djangoproject.com/weblog/2022/jul/04/security-releases/, https://docs.djangoproject.com/en/4.0/releases/security/, https://groups.google.com/forum/#!forum/django-announce, https://github.com/advisories/GHSA-p64x-8rxx-wf6q
Affected packages
Package
Name: django
Purl: pkg:pypi/django
Affected ranges
Type: ECOSYSTEM
Events:
Introduced- 3.2
Fixed -3.2.14
Affected 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
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
