CVE-2021-33203

Name
CVE-2021-33203
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.
NVD Severity
medium
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
MISC https://docs.djangoproject.com/en/3.2/releases/security/
CONFIRM https://www.djangoproject.com/weblog/2021/jun/02/security-releases/
MISC https://groups.google.com/forum/#!forum/django-announce
Third Party Advisory https://security.netapp.com/advisory/ntap-20210727-0004/
Mailing List https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* django >= None < 2.2.24
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* django >= 3.0.0 < 3.1.12
cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* django >= 3.2.0 < 3.2.4

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
py3-django 3.14-community 3.1.13-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
py3-django 3.15-community 3.1.13-r0 Natanael Copa <ncopa@alpinelinux.org> fixed