CVE-2021-33203

django: Potential directory traversal via ``admindocs``

Published Jun 8, 2021 CVSS 3.1 · 4.9 Medium EPSS 2.7% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2676-1 python-django security update
Debian DLA Debian DLA DLA-3744-1 python-django security update
EUVD EUVD EUVD-2021-0067 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.
Github GHSA Github GHSA GHSA-68w8-qjq3-2gfm Path Traversal in Django
Ubuntu USN Ubuntu USN USN-4975-1 Django vulnerabilities
Ubuntu USN Ubuntu USN USN-4975-2 Django vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 11:42 PM
Reserved
May 19, 2021, 12:00 AM
Status
Modified
Published
Jun 8, 2021, 6:15 PM
Modified
Jun 17, 2026, 3:54 AM
Severity
Moderate
Public date
Jun 2, 2021, 12:00 AM