CVE-2021-45116
Aliases:GHSA-8c5j-9r9f-c6w8BIT-django-2021-45116PYSEC-2022-2
Advisory lineage Upstream: 0 Downstream: 9
Modified
Published: 04 Jan 2022, 23:12
Last modified:22 May 2025, 18:36
Vulnerability Summary
Overall Risk (default)
medium
30/100 CVSS Score
7.5 HIGH
v3.1 (cve.org)
EPSS Score
0.36% LOW
0% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected
Timeline
04 Jan 2022, 23:12
Published
Vulnerability first disclosed
22 May 2025, 18:36
Last Modified
Vulnerability information updated
Description
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.
CVSS Metrics
- v4.0•HIGH•Score: 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- v3.1•HIGH•Score: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- v2.0•MEDIUM•Score: 5AV:N/AC:L/Au:N/C:P/I:N/A:N
EPSS Trends
Current EPSS score: 0.36%• Percentile: 59%
Techniques & Countermeasures
- CWE-20•Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
Affected Systems
- djangoproject•django
≥ 2.2, < 2.2.26 | ≥ 3.2, < 3.2.11 | ≥ 4.0, < 4.0.1
- fedoraproject•fedora
35
- PyPI•django
≥ 2.2, < 2.2.26 | ≥ 3.2, < 3.2.11 | ≥ 4.0, < 4.0.1
References (17)
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://www.djangoproject.com/weblog/2022/jan/04/security-releases/
- https://security.netapp.com/advisory/ntap-20220121-0005/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/
- https://nvd.nist.gov/vuln/detail/CVE-2021-45116
- https://github.com/django/django/commit/2a8ec7f546d6d5806e221ec948c5146b55bd7489
- https://github.com/django/django/commit/c7fe895bca06daf12cc1670b56eaf72a1ef27a16
- https://github.com/django/django/commit/c9f648ccfac5ab90fb2829a66da4f77e68c7f93a
- https://docs.djangoproject.com/en/4.0/releases/security
- https://github.com/advisories/GHSA-8c5j-9r9f-c6w8
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-2.yaml
- https://groups.google.com/forum/#!forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
- https://security.netapp.com/advisory/ntap-20220121-0005
- https://www.djangoproject.com/weblog/2022/jan/04/security-releases