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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django (PyPI) | from 2.2 before 2.2.26, from 3.2 before 3.2.11, from 4.0 before 4.0.1 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 2.2 before 2.2.26, from 3.2 before 3.2.11, from 4.0 before 4.0.1 | NVD |
| fedoraproject fedora | 35 | NVD |
| 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 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | 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 | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-45116 changed 2025-05-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8c5j-9r9f-c6w8 changed 2025-02-21 | CC-BY-4.0 |
| NVD | CVE-2021-45116 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2022-2 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2021-45116 changed 2026-09-08 | Apache-2.0 |