{"id":"CVE-2021-3281","aliases":["CVE-2021-3281","GHSA-fvgf-6h6h-3322","BIT-DJANGO-2021-3281","PYSEC-2021-9"],"related":[],"kind":"vulnerability","state":"published","title":"Django Directory Traversal via archive.extract","summary":"In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by \"startapp --template\" and \"startproject --template\") allows directory traversal via an archive with absolute paths or relative paths with dot segments.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by \"startapp --template\" and \"startproject --template\") allows directory traversal via an archive with absolute paths or relative paths with dot segments.","source":"cvelist"},{"lang":"es","text":"En Django versiones 2.2 anteriores a 2.2.18, versiones 3.0 anteriores a 3.0.12 y versiones 3.1 anteriores a 3.1.6, el método django.utils.archive.extract (usado por \"startapp --template\" y \"startproject --template\") permite un salto de directorios por medio de un archivo con rutas absolutas o rutas relativas con segmentos de puntos","source":"nvd"}],"published":"2021-02-02T06:16:28.000Z","modified":"2026-09-08T08:46:22.875Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/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:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"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":"2.2","status":"affected","fixed":"2.2.18"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.1","status":"affected","fixed":"3.1.6"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.0","status":"affected","fixed":"3.0.12"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.2","fixed":"2.2.18"},{"status":"affected","introduced":"3.0","fixed":"3.0.12"},{"status":"affected","introduced":"3.1","fixed":"3.1.6"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"33"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"snapcenter","cpe":"cpe:2.3:a:netapp:snapcenter:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"2.2.18"},{"type":"ecosystem","introduced":"3.0","status":"affected","fixed":"3.0.12"},{"type":"ecosystem","introduced":"3.1","status":"affected","fixed":"3.1.6"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"2.2.0","status":"affected","fixed":"2.2.18"},{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.0.12"},{"type":"semver","introduced":"3.1.0","status":"affected","fixed":"3.1.6"}],"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.1/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/feb/01/security-releases/","tags":["advisory","article","vendor-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YF52FKEH5S2P5CM4X7IXSYG67YY2CDOO/","tags":["vendor-advisory","web","x-refsource-fedora","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20210226-0004/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3281","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/02e6592835b4559909aa3aaaf67988fef435f624","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/05413afa8c18cdb978fcdf470e09f7a12b234a23","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/21e7622dec1f8612c85c2fc37fe8efbfd3311e37","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/52e409ed17287e9aabda847b6afe58be2fa9f86a","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/3.1/releases/3.0.12","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/3.1/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-fvgf-6h6h-3322","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-9.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/YF52FKEH5S2P5CM4X7IXSYG67YY2CDOO","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210226-0004","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2021/feb/01/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YF52FKEH5S2P5CM4X7IXSYG67YY2CDOO/","tags":["web"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3281","url":"https://www.cve.org/CVERecord?id=CVE-2021-3281","licence":"CVE Terms of Use","modified":"2024-08-03T16:53:17.221Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fvgf-6h6h-3322","url":"https://github.com/advisories/GHSA-fvgf-6h6h-3322","licence":"CC-BY-4.0","modified":"2024-09-20T15:46:03.145Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3281","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3281","licence":"Public domain","modified":"2026-06-17T04:04:53.093Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-9","url":"https://osv.dev/vulnerability/PYSEC-2021-9","licence":"CC-BY-4.0","modified":"2023-12-06T01:01:15.916Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2021-3281","url":"https://osv.dev/vulnerability/BIT-DJANGO-2021-3281","licence":"Apache-2.0","modified":"2026-09-08T08:46:22.875Z"}],"updatedAt":"2026-11-25T22:57:59.773Z","epss":{"score":0.07605,"percentile":0.94689,"date":"2026-12-02T12:00:21.000Z"}}