4.9medium
Path Traversal in Django
- Severity
- 4.9medium CVSS:3.1 by NVD
- Exploit likelihood
- 2.49% (higher than 85% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-68w8-qjq3-2gfmBIT-DJANGO-2021-33203PYSEC-2021-98
Description
Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. Additionally, if (and only if) the default admindocs templates have been customized by application developers to also show file contents, then not only the existence but also the file contents would have been exposed. In other words, there is directory traversal outside of the template root directories.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django (PyPI) | before 2.2.24, from 3.0 before 3.1.12, from 3.2 before 3.2.4 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | before 2.2.24, from 3.0.0 before 3.1.12, from 3.2.0 before 3.2.4 | NVD |
| fedoraproject fedora | 35 | NVD |
| django (Bitnami) | before 2.2.24, from 3.0.0 before 3.1.12, from 3.2.0 before 3.2.4 | Bitnami Vulnerability Database |
All scores
| GitHub | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| NVD | 4.0medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. Additionally, if (and only if) the default admindocs templates have been customized by application developers to also show file contents, then not only the existence but also the file contents would have been exposed. In other words, there is directory traversal outside of the template root directories.
NVD (es)
Django versiones anteriores a 2.2.24, versiones 3.x anteriores a 3.1.12 y versiones 3.2.x anteriores a 3.2.4, presenta un potencial salto de directorio por medio de django.contrib.admindocs. Los miembros del personal podrían usar la visualización TemplateDetailView para comprobar la existencia de archivos arbitrarios. Adicionalmente, si (y sólo si) las plantillas admindocs por defecto han sido personalizadas por los desarrolladores de aplicaciones para mostrar también el contenido de los archivos, entonces no sólo se habría expuesto la existencia sino también el contenido de los archivos. En otras palabras, se presenta un salto de directorio fuera de los directorios root de las plantillas
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-33203 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-68w8-qjq3-2gfm changed 2024-09-20 | CC-BY-4.0 |
| NVD | CVE-2021-33203 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-98 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2021-33203 changed 2026-09-08 | Apache-2.0 |