Feed
5.3MEDIUM
CVE-2021-3281Django Directory Traversal via archive.extract
A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 7.6% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 7.6%
- percentile 95%
- Fix
- Named by a source
- CVE published 2 Feb 2021
Reference
None of the "Needs attention" rules apply right now.
EPSS 7.6% (+8) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 2.2.18 / 3.1.6 / 3.0.12 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/02e6592835b4559909aa3aaaf67988fef435f624
- Commit / pull request: https://github.com/django/django/commit/05413afa8c18cdb978fcdf470e09f7a12b234a23
- Commit / pull request: https://github.com/django/django/commit/21e7622dec1f8612c85c2fc37fe8efbfd3311e37
- Commit / pull request: https://github.com/django/django/commit/52e409ed17287e9aabda847b6afe58be2fa9f86a
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 2.2, < 2.2.18Fixed in2.2.18OSV (PYSEC-2021-9)
- Affected>= 3.1, < 3.1.6Fixed in3.1.6OSV (PYSEC-2021-9)
- Affected>= 3.0, < 3.0.12Fixed in3.0.12OSV (PYSEC-2021-9)
Confirmed facts
- CVSS
- 5.3 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-fvgf-6h6h-3322)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-22
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
- 25 Nov 2025Exploitation more likely 3.5% → 36.2%
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2021-3281
- commit / pull requesthttps://github.com/django/django/commit/02e6592835b4559909aa3aaaf67988fef435f624
- commit / pull requesthttps://github.com/django/django/commit/05413afa8c18cdb978fcdf470e09f7a12b234a23
- commit / pull requesthttps://github.com/django/django/commit/21e7622dec1f8612c85c2fc37fe8efbfd3311e37
- commit / pull requesthttps://github.com/django/django/commit/52e409ed17287e9aabda847b6afe58be2fa9f86a
- otherhttps://docs.djangoproject.com/en/3.1/releases/3.0.12
- otherhttps://docs.djangoproject.com/en/3.1/releases/security
- advisoryhttps://github.com/advisories/GHSA-fvgf-6h6h-3322
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-9.yaml
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/YF52FKEH5S2P5CM4X7IXSYG67YY2CDOO
- otherhttps://security.netapp.com/advisory/ntap-20210226-0004
- otherhttps://www.djangoproject.com/weblog/2021/feb/01/security-releases
- otherhttps://docs.djangoproject.com/en/3.1/releases/security/
- otherhttps://www.djangoproject.com/weblog/2021/feb/01/security-releases/
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/YF52FKEH5S2P5CM4X7IXSYG67YY2CDOO/
- advisoryhttps://security.netapp.com/advisory/ntap-20210226-0004/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-fvgf-6h6h-3322 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2021-9 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 7 min ago · osv 7 min ago · nvd 68 min ago · epss 7 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2021-3281, GHSA-fvgf-6h6h-3322, PYSEC-2021-9