Vulnerabilities · 2021 · Djangoproject
CVE-2021-33203
Djangoproject Django vulnerability
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 products
Django, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Djangoproject Django runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- docs.djangoproject.com/en/3.2/releases/security/ · Patch
- www.djangoproject.com/weblog/2021/jun/02/security-releases/ · Patch
- security.netapp.com/advisory/ntap-20210727-0004/ · Third Party Advisory
- groups.google.com/forum/#%21forum/django-announce
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B
- nvd.nist.gov/vuln/detail/CVE-2021-33203
- groups.google.com/forum/#!forum/django-announce
- github.com/django/django/commit/053cc9534d174dc89daba36724ed2dcb36755b90
- nvd.nist.gov/vuln/detail/CVE-2021-33203
- cve.org/CVERecord?id=CVE-2021-33203
More vulnerabilities in Djangoproject products
CVE-2026-1312CVE-2026-1287CVE-2026-1285CVE-2026-1207CVE-2025-64460CVE-2025-64459CVE-2025-64458CVE-2025-59682All 137
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.