{"id":"CVE-2021-33203","aliases":["CVE-2021-33203","GHSA-68w8-qjq3-2gfm","BIT-DJANGO-2021-33203","PYSEC-2021-98"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in Django","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Django versiones anteriores a 2.2.24, versiones 3.x anteriores a 3.1.12 y versiones 3.2.x anteriores a 3.2.4, presenta un potencial salto de directorio por medio de django.contrib.admindocs. Los miembros del personal podrían usar la visualización TemplateDetailView para comprobar la existencia de archivos arbitrarios. Adicionalmente, si (y sólo si) las plantillas admindocs por defecto han sido personalizadas por los desarrolladores de aplicaciones para mostrar también el contenido de los archivos, entonces no sólo se habría expuesto la existencia sino también el contenido de los archivos. En otras palabras, se presenta un salto de directorio fuera de los directorios root de las plantillas","source":"nvd"}],"published":"2021-06-08T17:52:20.000Z","modified":"2026-09-08T08:46:27.241Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.24"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0","status":"affected","fixed":"3.1.12"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.2","status":"affected","fixed":"3.2.4"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.24"},{"status":"affected","introduced":"3.0.0","fixed":"3.1.12"},{"status":"affected","introduced":"3.2.0","fixed":"3.2.4"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.24"},{"type":"ecosystem","introduced":"3.0","status":"affected","fixed":"3.1.12"},{"type":"ecosystem","introduced":"3.2","status":"affected","fixed":"3.2.4"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.2.24"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.1.12"},{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.2.4"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","tags":["advisory","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2021/jun/02/security-releases/","tags":["advisory","article","patch","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20210727-0004/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33203","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/053cc9534d174dc89daba36724ed2dcb36755b90","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/20c67a0693c4ede2b09af02574823485e82e4c8f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/dfaba12cda060b8b292ae1d271b44bf810b1c5b9","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/3.2/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-68w8-qjq3-2gfm","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-98.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/forum/#!forum/django-announce","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210727-0004","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2021/jun/02/security-releases","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-33203","url":"https://www.cve.org/CVERecord?id=CVE-2021-33203","licence":"CVE Terms of Use","modified":"2024-08-03T23:42:20.290Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-68w8-qjq3-2gfm","url":"https://github.com/advisories/GHSA-68w8-qjq3-2gfm","licence":"CC-BY-4.0","modified":"2024-09-20T15:46:52.557Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-33203","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-33203","licence":"Public domain","modified":"2026-06-17T03:54:20.903Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-98","url":"https://osv.dev/vulnerability/PYSEC-2021-98","licence":"CC-BY-4.0","modified":"2023-12-06T01:01:16.755Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2021-33203","url":"https://osv.dev/vulnerability/BIT-DJANGO-2021-33203","licence":"Apache-2.0","modified":"2026-09-08T08:46:27.241Z"}],"updatedAt":"2026-11-25T22:58:01.691Z","epss":{"score":0.02492,"percentile":0.85099,"date":"2026-12-01T12:00:22.000Z"}}