Vulnerability advisory
CVE-2021-33203
Also known as BIT-django-2021-33203GHSA-68w8-qjq3-2gfmPYSEC-2021-98
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/django/django ↗ | |
| All commits before 2da029d8540ab0b2e9edcba25c4d46c52853197f | 2da029d8540ab0b2e9edcba25c4d46c52853197f |
| Not specified | 625d3c1c643b0eb5c84339415ca0ba9f1728efa2 |
| Not specified | 843c34b3ab921c1acf77ee2014a97bc7975595b8 |
Also listed as affected (56)
| |
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.
References
- Webgroups.google.com/forum/#%21forum/django-announce ↗
- Weblists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/ ↗
- Advisorysecurity.netapp.com/advisory/ntap-20210727-0004/ ↗
- Fixdocs.djangoproject.com/en/3.2/releases/security/ ↗
- Fixwww.djangoproject.com/weblog/2021/jun/02/security-releases/ ↗