PT-2021-4574

CVE-2021-33203

·

Published

2021-05-19

·

Updated

2026-10-31

Description by

CVSS 4.0
6.9
Medium
MetricsAV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Django versions 2.2.23 and earlier, 3.x versions prior to 3.1.12, 3.2.x versions prior to 3.2.4
Description The issue is related to a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. If the default admindocs templates have been customized to show file contents, then the file contents would also be exposed, allowing for directory traversal outside of the template root directories.
Recommendations For Django versions 2.2.23 and earlier, update to version 2.2.24 or later. For Django 3.x versions prior to 3.1.12, update to version 3.1.12 or later. For Django 3.2.x versions prior to 3.2.4, update to version 3.2.4 or later. As a temporary workaround, consider restricting access to the TemplateDetailView view in django.contrib.admindocs until a patch is applied.
Exploitability
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-68W8-QJQ3-2GFM
ALT-PU-2021-2228
ALT-PU-2021-3619
BIT-DJANGO-2021-33203
CLEANSTART-2025-QJ96399
DLA-2676-1
DLA-3744-1
MGASA-2021-0356
OPENSUSE-SU-2023:0005-1
OPENSUSE-SU-2024:11205-1
OPENSUSE-SU-2024:13887-1
OPENSUSE-SU-2024:14208-1
OPENSUSE-SU-2026:10005-1
OPENSUSE-SU-2026:11235-1
OPENSUSE-SU-2026:11248-1
OPENSUSE-SU-2026:11270-1
PYSEC-2021-98
RHSA-2021:3490
RHSA-2021:4702
RHSA-2021:5070
SUSE-SU-2021:1962-1
SUSE-SU-2021:1963-1
SUSE-SU-2021:2554-1
USN-4975-1
USN-4975-2
Found an issue in the description? Have something to add? Feel free to write us 👾