CVE-2021-33203

Aliases:GHSA-68w8-qjq3-2gfmBIT-django-2021-33203PYSEC-2021-98
Modified
Published: 08 Jun 2021, 17:52
Last modified:03 Aug 2024, 23:42

Vulnerability Summary

Overall Risk (default)
low
20/100
CVSS Score
4.9 MEDIUM
v3.1 (nvd)
EPSS Score
0.14% LOW
0% probability -0.18%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

08 Jun 2021, 17:52
Published
Vulnerability first disclosed
03 Aug 2024, 23:42
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v4.0MEDIUMScore: 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
  • v3.1MEDIUMScore: 4.9CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
  • v2.0MEDIUMScore: 4AV:N/AC:L/Au:S/C:P/I:N/A:N

EPSS Trends

Current EPSS score: 0.14% Percentile: 34%

Techniques & Countermeasures

  • CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

    The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Affected Systems

  • djangoprojectdjango

    < 2.2.24 | ≥ 3.0.0, < 3.1.12 | ≥ 3.2.0, < 3.2.4

  • fedoraprojectfedora

    35

  • PyPIdjango

    < 2.2.24 | ≥ 3.0, < 3.1.12 | ≥ 3.2, < 3.2.4

References (17)