CVE-2021-33203

MEDIUMCVSS 4.9/10EPSS 2.74%

Last modified

CVE-2021-33203 is a medium-severity vulnerability rated 4.9/10 on the CVSS scale. 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. EPSS estimates a 2.74% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
4.9/10

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

EPSS Probability
2.74%

84.2th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
DjangoprojectDjango< 2.2.24
DjangoprojectDjango>= 3.0.0, < 3.1.12
DjangoprojectDjango>= 3.2.0, < 3.2.4
FedoraprojectFedora35

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-33203?
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.
How severe is CVE-2021-33203?
CVE-2021-33203 has a CVSS score of 4.9/10 (MEDIUM severity). The EPSS model estimates a 2.74% probability of exploitation in the next 30 days.
How do I fix CVE-2021-33203?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-33203?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST