Vulnerability · Published Jun 8, 2021 · Assigned by mitre
CVE-2021-33203
Medium 4.9
In plain English
A medium-severity security flaw in the py3-django package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33203 |
| Alpine:v3.21 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33203 |
| Alpine:v3.22 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33203 |
| Alpine:v3.23 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33203 |
| Alpine:v3.24 | py3-django | 3.1.13-r0 | ALPINE-CVE-2021-33203 |
| Debian:12 | python-django | 2:2.2.24-1 | DEBIAN-CVE-2021-33203 |
| Debian:13 | python-django | 2:2.2.24-1 | DEBIAN-CVE-2021-33203 |
| Debian:14 | python-django | 2:2.2.24-1 | DEBIAN-CVE-2021-33203 |
| PyPI | django | 2.2.24, 3.1.12, 3.2.4 | PYSEC-2021-98 |
| PyPI | django | 3.2.4 | GHSA-68w8-qjq3-2gfm |
| PyPI | django | 3.1.12 | GHSA-68w8-qjq3-2gfm |
| PyPI | django | 2.2.24 | GHSA-68w8-qjq3-2gfm |
Affected products (as reported)
References
- https://groups.google.com/forum/#%21forum/django-announce x_refsource_MISC
- https://docs.djangoproject.com/en/3.2/releases/security/ x_refsource_MISC
- https://www.djangoproject.com/weblog/2021/jun/02/security-releases/ x_refsource_CONFIRM
- https://security.netapp.com/advisory/ntap-20210727-0004/ x_refsource_CONFIRM
- FEDORA-2022-e7fd530688 vendor-advisory, x_refsource_FEDORA