GHSA-8c5j-9r9f-c6w8
HIGH
Information disclosure in Django
Published January 12, 2022Updated February 21, 2025Source: osv
Details
An issue was discovered in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1. Due to leveraging the Django Template Language's variable resolution logic, the dictsort template filter was potentially vulnerable to information disclosure, or an unintended method call, if passed a suitably crafted key.
Remediation
Upgrade to the fixed version using your package manager.
pip
Update django to 2.2.26 or laterpip install "django>=2.2.26"
pip
Update django to 3.2.11 or laterpip install "django>=3.2.11"
pip
Update django to 4.0.1 or laterpip install "django>=4.0.1"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (3)
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-20Improper Input ValidationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 3.1 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-45116ADVISORY
- https://github.com/django/django/commit/2a8ec7f546d6d5806e221ec948c5146b55bd7489WEB
- https://github.com/django/django/commit/c7fe895bca06daf12cc1670b56eaf72a1ef27a16WEB
- https://github.com/django/django/commit/c9f648ccfac5ab90fb2829a66da4f77e68c7f93aWEB
- https://docs.djangoproject.com/en/4.0/releases/securityWEB
- https://github.com/advisories/GHSA-8c5j-9r9f-c6w8ADVISORY
- https://github.com/django/djangoPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-2.yamlWEB
- https://groups.google.com/forum/#!forum/django-announceWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDVWEB
- https://security.netapp.com/advisory/ntap-20220121-0005WEB
- https://www.djangoproject.com/weblog/2022/jan/04/security-releasesWEB
Risk Assessment
CVSS Score
3.1
Exploitation is difficult or impact is minor. Address in your next planned update.
EPSS Score (30-day exploit probability)
0.35%
Higher than 57% of vulnerabilities
Also Known As
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies