High severityNVD Advisory· Published Jan 4, 2022· Updated May 22, 2025
CVE-2021-45116
CVE-2021-45116
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
DjangoPyPI | >= 2.2, < 2.2.26 | 2.2.26 |
DjangoPyPI | >= 3.2, < 3.2.11 | 3.2.11 |
DjangoPyPI | >= 4.0, < 4.0.1 | 4.0.1 |
Affected products
10- Django/Djangodescription
- osv-coords9 versionspkg:bitnami/djangopkg:pypi/djangopkg:rpm/opensuse/python-Django&distro=openSUSE%20Leap%2015.3pkg:rpm/suse/python-Django1&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/python-Django1&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209pkg:rpm/suse/python-Django&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/python-Django&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/python-Django&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/python-Django&distro=SUSE%20Package%20Hub%2015%20SP3
>= 2.2.0, < 2.2.26+ 8 more
- (no CPE)range: >= 2.2.0, < 2.2.26
- (no CPE)range: >= 2.2, < 2.2.26
- (no CPE)range: < 2.2.28-bp153.2.3.1
- (no CPE)range: < 1.11.29-3.30.1
- (no CPE)range: < 1.11.29-3.30.1
- (no CPE)range: < 1.11.29-3.33.1
- (no CPE)range: < 1.11.29-3.33.1
- (no CPE)range: < 1.11.29-3.33.1
- (no CPE)range: < 2.2.28-bp153.2.3.1
Patches
Vulnerability mechanics
References
16- github.com/advisories/GHSA-8c5j-9r9f-c6w8ghsaADVISORY
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/mitrevendor-advisoryx_refsource_FEDORA
- nvd.nist.gov/vuln/detail/CVE-2021-45116ghsaADVISORY
- docs.djangoproject.com/en/4.0/releases/securityghsaWEB
- docs.djangoproject.com/en/4.0/releases/security/mitrex_refsource_MISC
- github.com/django/django/commit/2a8ec7f546d6d5806e221ec948c5146b55bd7489ghsaWEB
- github.com/django/django/commit/c7fe895bca06daf12cc1670b56eaf72a1ef27a16ghsaWEB
- github.com/django/django/commit/c9f648ccfac5ab90fb2829a66da4f77e68c7f93aghsaWEB
- github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-2.yamlghsaWEB
- groups.google.com/forum/ghsaWEB
- groups.google.com/forum/mitrex_refsource_MISC
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDVghsaWEB
- security.netapp.com/advisory/ntap-20220121-0005ghsaWEB
- security.netapp.com/advisory/ntap-20220121-0005/mitrex_refsource_CONFIRM
- www.djangoproject.com/weblog/2022/jan/04/security-releasesghsaWEB
- www.djangoproject.com/weblog/2022/jan/04/security-releases/mitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.