# CVE-2021-45116: Information disclosure in Django

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.98%, higher than 81% of CVEs (2026-12-01)
- Published: 2022-01-04T23:12:43.000Z
- Modified: 2026-09-08T08:46:26.601Z
- Also known as: GHSA-8c5j-9r9f-c6w8, BIT-DJANGO-2021-45116, PYSEC-2022-2
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): from 2.2 before 2.2.26; from 3.2 before 3.2.11; from 4.0 before 4.0.1
- djangoproject django: from 2.2 before 2.2.26; from 3.2 before 3.2.11; from 4.0 before 4.0.1
- fedoraproject fedora: 35
- django (Bitnami): from 2.2.0 before 2.2.26; from 3.2.0 before 3.2.11; from 4.0.0 before 4.0.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://groups.google.com/forum/#%21forum/django-announce> (web)
- <https://docs.djangoproject.com/en/4.0/releases/security/> (advisory, patch, vendor-advisory, web)
- <https://www.djangoproject.com/weblog/2022/jan/04/security-releases/> (advisory, article, patch, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20220121-0005/> (advisory, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45116> (advisory, web)
- <https://github.com/django/django/commit/2a8ec7f546d6d5806e221ec948c5146b55bd7489> (web)
- <https://github.com/django/django/commit/c7fe895bca06daf12cc1670b56eaf72a1ef27a16> (web)
- <https://github.com/django/django/commit/c9f648ccfac5ab90fb2829a66da4f77e68c7f93a> (web)
- <https://docs.djangoproject.com/en/4.0/releases/security> (web)
- <https://github.com/advisories/GHSA-8c5j-9r9f-c6w8> (advisory)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-2.yaml> (web)
- <https://groups.google.com/forum/#!forum/django-announce> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV> (web)
- <https://security.netapp.com/advisory/ntap-20220121-0005> (web)
- <https://www.djangoproject.com/weblog/2022/jan/04/security-releases> (web)

## Sources

- CVE List: [CVE-2021-45116](https://www.cve.org/CVERecord?id=CVE-2021-45116), CVE Terms of Use, modified 2025-05-22
- GitHub Advisory Database: [GHSA-8c5j-9r9f-c6w8](https://github.com/advisories/GHSA-8c5j-9r9f-c6w8), CC-BY-4.0, modified 2025-02-21
- NVD: [CVE-2021-45116](https://nvd.nist.gov/vuln/detail/CVE-2021-45116), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-2](https://osv.dev/vulnerability/PYSEC-2022-2), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-DJANGO-2021-45116](https://osv.dev/vulnerability/BIT-DJANGO-2021-45116), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-45116 · Whole record: https://cve.day/CVE-2021-45116.json · Rebuilt by cve.day 2026-11-25T22:58:06.402Z
