{"id":"CVE-2021-33203","published":"2021-06-08T17:52:20Z","modified":"2024-08-03T23:42:20Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02737,"percentile":0.86472,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["x_refsource_MISC"]},{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","tags":["x_refsource_MISC"]},{"url":"https://www.djangoproject.com/weblog/2021/jun/02/security-releases/","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20210727-0004/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":17.29}]},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":["<2.2.24",">=3.0, <3.1.12",">=3.2, <3.2.4"],"patched":["2.2.24","3.1.12","3.2.4"],"from":["GHSA-68w8-qjq3-2gfm","PYSEC-2021-98"],"provenance":"source"}],"summary":{"text":"The flaw is a potential directory traversal in the admindocs component of Django, affecting Django versions before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4. An attacker who is a staff member can use the TemplateDetailView to check whether arbitrary files exist outside the template root directories, and can also read their contents only if the default admindocs templates have been customized by application developers to display file contents.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:25Z"},"euvd":{"id":"EUVD-2021-0067","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-28658","published":"2021-04-06","fixed":"3.1.8","kev":false},{"cve":"CVE-2021-31542","published":"2021-05-05","fixed":"3.2.1","kev":false},{"cve":"CVE-2021-32052","published":"2021-05-06","fixed":"3.2.2","kev":false,"link":{"from":"CVE-2021-32052","to":"CVE-2021-33203","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"2.2.22","toFixed":"2.2.24","daysApart":33},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"3.1.10","toFixed":"3.1.12","daysApart":33}]}},{"cve":"CVE-2021-33203","published":"2021-06-08","fixed":"3.2.4","kev":false},{"cve":"CVE-2021-33571","published":"2021-06-08","fixed":"3.2.4","kev":false},{"cve":"CVE-2021-35042","published":"2021-07-02","fixed":"3.2.5","kev":false,"link":{"from":"CVE-2021-33203","to":"CVE-2021-35042","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"3.2.4","toFixed":"3.2.5","daysApart":24}]}},{"cve":"CVE-2021-44420","published":"2021-12-07","fixed":"3.2.10","kev":false,"link":{"from":"CVE-2021-33203","to":"CVE-2021-44420","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"2.2.24","toFixed":"2.2.25","daysApart":182}]}}],"package":"PyPI:Django"}}