CVE-2021-45116
JSON

7.5high

Information disclosure in Django

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.98% (higher than 81% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-8c5j-9r9f-c6w8BIT-DJANGO-2021-45116PYSEC-2022-2

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
django (PyPI)from 2.2 before 2.2.26, from 3.2 before 3.2.11, from 4.0 before 4.0.1GitHub Advisory Database, PyPA Advisory Database
djangoproject djangofrom 2.2 before 2.2.26, from 3.2 before 3.2.11, from 4.0 before 4.0.1NVD
fedoraproject fedora35NVD
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.1Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-20

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se ha detectado un problema en Django versiones 2.2 anteriores a 2.2.26, 3.2 anteriores a 3.2.11 y 4.0 anteriores a 4.0.1. Debido al aprovechamiento de la lógica de resolución de variables del lenguaje de plantillas de Django, el filtro de plantillas dictsort era potencialmente vulnerable a una divulgación de información, o a una llamada de método no intencionada, si le es pasada una clave apropiadamente diseñada.

References

https://groups.google.com/forum/#%21forum/django-announceweb
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-45116advisory, web
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

Sources

SourceRecordLicence
CVE ListCVE-2021-45116 changed 2025-05-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-8c5j-9r9f-c6w8 changed 2025-02-21CC-BY-4.0
NVDCVE-2021-45116 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-2 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2021-45116 changed 2026-09-08Apache-2.0