# CVE-2021-33203: Path Traversal in Django

- Severity: Medium 4.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.49%, higher than 85% of CVEs (2026-12-01)
- Published: 2021-06-08T17:52:20.000Z
- Modified: 2026-09-08T08:46:27.241Z
- Also known as: GHSA-68w8-qjq3-2gfm, BIT-DJANGO-2021-33203, PYSEC-2021-98
- Weaknesses: CWE-22
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): before 2.2.24; from 3.0 before 3.1.12; from 3.2 before 3.2.4
- djangoproject django: before 2.2.24; from 3.0.0 before 3.1.12; from 3.2.0 before 3.2.4
- fedoraproject fedora: 35
- django (Bitnami): before 2.2.24; from 3.0.0 before 3.1.12; from 3.2.0 before 3.2.4

## Every score

- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://groups.google.com/forum/#%21forum/django-announce> (web)
- <https://docs.djangoproject.com/en/3.2/releases/security/> (advisory, patch, vendor-advisory, web)
- <https://www.djangoproject.com/weblog/2021/jun/02/security-releases/> (advisory, article, patch, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20210727-0004/> (advisory, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-33203> (advisory, web)
- <https://github.com/django/django/commit/053cc9534d174dc89daba36724ed2dcb36755b90> (web)
- <https://github.com/django/django/commit/20c67a0693c4ede2b09af02574823485e82e4c8f> (web)
- <https://github.com/django/django/commit/dfaba12cda060b8b292ae1d271b44bf810b1c5b9> (web)
- <https://docs.djangoproject.com/en/3.2/releases/security> (web)
- <https://github.com/advisories/GHSA-68w8-qjq3-2gfm> (advisory)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-98.yaml> (web)
- <https://groups.google.com/forum/#!forum/django-announce> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV> (web)
- <https://security.netapp.com/advisory/ntap-20210727-0004> (web)
- <https://www.djangoproject.com/weblog/2021/jun/02/security-releases> (web)

## Sources

- CVE List: [CVE-2021-33203](https://www.cve.org/CVERecord?id=CVE-2021-33203), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-68w8-qjq3-2gfm](https://github.com/advisories/GHSA-68w8-qjq3-2gfm), CC-BY-4.0, modified 2024-09-20
- NVD: [CVE-2021-33203](https://nvd.nist.gov/vuln/detail/CVE-2021-33203), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-98](https://osv.dev/vulnerability/PYSEC-2021-98), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-DJANGO-2021-33203](https://osv.dev/vulnerability/BIT-DJANGO-2021-33203), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-33203 · Whole record: https://cve.day/CVE-2021-33203.json · Rebuilt by cve.day 2026-11-25T22:58:01.691Z
