Vulnerabilities · 2021 · Djangoproject
CVE-2021-3281
Djangoproject Django vulnerability
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.
Affected products
Django, Fedora, Snapcenter. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Djangoproject Django runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- docs.djangoproject.com/en/3.1/releases/security/ · Patch
- www.djangoproject.com/weblog/2021/feb/01/security-releases/ · Vendor Advisory
- security.netapp.com/advisory/ntap-20210226-0004/ · Third Party Advisory
- groups.google.com/forum/#%21forum/django-announce
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y
- nvd.nist.gov/vuln/detail/CVE-2021-3281
- github.com/django/django/commit/05413afa8c18cdb978fcdf470e09f7a12b234a23
- groups.google.com/forum/#!forum/django-announce
- nvd.nist.gov/vuln/detail/CVE-2021-3281
- cve.org/CVERecord?id=CVE-2021-3281
More vulnerabilities in Djangoproject products
CVE-2026-1312CVE-2026-1287CVE-2026-1285CVE-2026-1207CVE-2025-64460CVE-2025-64459CVE-2025-64458CVE-2025-59682All 137
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.