What’s Vulnerable › Vulnerabilities
CVE-2021-3281
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 7.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-02-02 · updated 2026-06-17
- Weakness: CWE-22
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.
Affected products
- Django: from 2.2 before 2.2.18; from 3.0 before 3.0.12; from 3.1 before 3.1.6 — fixed in 2.2.18, 3.0.12, 3.1.6
- Fedoraproject Fedora: 33
- NetApp SnapCenter: all versions
How to fix
Upgrade to a fixed version: Django 2.2.18, 3.0.12, 3.1.6. Check the vendor advisory for mitigations.
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/
- 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/
Get alerted when CVE-2021-3281 or the next vulnerability affects your stack