CVEvulnerability
CVE-2021-33203
4.9 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2021-06-08
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 4.9 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- CVSS 2.0 ([email protected])
- 4.0 MEDIUM — AV:N/AC:L/Au:S/C:P/I:N/A:N
- Weaknesses
- CWE-22
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 configurations
• djangoproject django (< 2.2.24)
• djangoproject django (>= 3.0.0 < 3.1.12)
• djangoproject django (>= 3.2.0 < 3.2.4)
• fedoraproject fedora 35
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://docs.djangoproject.com/en/3.2/releases/security/ Patch, Vendor Advisory
- https://groups.google.com/forum/#%21forum/django-announce groups.google.com
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/ lists.fedoraproject.org
- https://security.netapp.com/advisory/ntap-20210727-0004/ Third Party Advisory
- https://www.djangoproject.com/weblog/2021/jun/02/security-releases/ Patch, Vendor Advisory
- https://docs.djangoproject.com/en/3.2/releases/security/ Patch, Vendor Advisory
- https://groups.google.com/forum/#%21forum/django-announce groups.google.com
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/ lists.fedoraproject.org
- https://security.netapp.com/advisory/ntap-20210727-0004/ Third Party Advisory
- https://www.djangoproject.com/weblog/2021/jun/02/security-releases/ Patch, Vendor Advisory