{"cve":"CVE-2021-3281","nvd":{"published":"2021-02-02T07:15:14.020","modified":"2026-06-17T04:04:53.093","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-22"],"references":["https://docs.djangoproject.com/en/3.1/releases/security/","https://groups.google.com/forum/#%21forum/django-announce","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YF52FKEH5S2P5CM4X7IXSYG67YY2CDOO/","https://security.netapp.com/advisory/ntap-20210226-0004/","https://www.djangoproject.com/weblog/2021/feb/01/security-releases/"],"products":["djangoproject:django","fedoraproject:fedora","netapp:snapcenter"],"source":"nvd","synced_at":"2026-10-19T21:14:10.479542811+00:00"},"epss":{"cve":"CVE-2021-3281","score":0.07605,"percentile":0.94549,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fvgf-6h6h-3322","url":"https://osv.dev/vulnerability/GHSA-fvgf-6h6h-3322","summary":"Django Directory Traversal via archive.extract","modified":"2024-09-20T15:46:03.145197Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2 <2.2.18"],"fixed":["2.2.18"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.1 <3.1.6"],"fixed":["3.1.6"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.0 <3.0.12"],"fixed":["3.0.12"]}]},{"id":"PYSEC-2021-9","url":"https://osv.dev/vulnerability/PYSEC-2021-9","summary":"","modified":"2023-12-06T01:01:15.916389Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=2.2 <2.2.18",">=3.0 <3.0.12",">=3.1 <3.1.6"],"fixed":["2.2.18","3.0.12","3.1.6"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}