CVE-2021-3281
A public proof of concept exists; no exploitation attested.
- Published2021-02-02
- Fixed in3.1.6 · 3.0.12 · 2.2.18
- WeaknessCWE-22
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-02-0207:15CVE publishedNVD
- 2026-10-2319:23First public proof of conceptPoC-in-GitHub
Versions per branch
NVD · OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 3.1 | ≥ 3.1, < 3.1.6 | 3.1.6 | NVD · OSV |
| 3.1 | ≥ 3.1.0, < 3.1.6 | 3.1.6 | OSV |
| 3.0 | ≥ 3.0, < 3.0.12 | 3.0.12 | NVD · OSV |
| 3.0 | ≥ 3.0.0, < 3.0.12 | 3.0.12 | OSV |
| 2.2 | ≥ 2.2, < 2.2.18 | 2.2.18 | NVD · OSV |
| 2.2 | ≥ 2.2.0, < 2.2.18 | 2.2.18 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 33.x | = 33 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | NVD |
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- ardana-dbSUSE:OpenStack Cloud 9all versions · fixed in 9.0+git.1611600773.5f1de5f-3.22.1
- ardana-horizonSUSE:OpenStack Cloud 9all versions · fixed in 9.0+git.1610491814.38661c2-3.16.1
- ardana-horizonSUSE:OpenStack Cloud 8all versions · fixed in 8.0+git.1610733160.0f577f4-3.21.1
- ardana-horizonSUSE:HPE Helion OpenStack 8all versions · fixed in 8.0+git.1610733160.0f577f4-3.21.1
- ardana-loggingSUSE:OpenStack Cloud 9all versions · fixed in 9.0+git.1610490922.d5f9813-3.16.1
- ardana-loggingSUSE:OpenStack Cloud 8all versions · fixed in 8.0+git.1610573640.452aed1-3.27.1
- ardana-loggingSUSE:HPE Helion OpenStack 8all versions · fixed in 8.0+git.1610573640.452aed1-3.27.1
- ardana-monascaSUSE:OpenStack Cloud 9all versions · fixed in 9.0+git.1610547641.d79ecfd-3.22.1
102 more package ranges on OSV.dev
Vendor advisories
django: Potential directory-traversal via archive.extract()
python-django.src as a component of Red Hat Ansible Automation Platform 1.2 · python-django-bash-completion as a component of Red Hat Ceph Storage 2 · python-django.src as a component of Red Hat Ceph Storage 2 · +18 more
Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (python-django20) security update
Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (python-django20) security update
Red Hat Security Advisory: Red Hat Ansible Automation Platform 1.2.2 security and bug fix update
Red Hat Security Advisory: Red Hat Ansible Tower 3.8.2-1 - Container security and bug fix update
Fix
- Update Django to 3.1.6 · 3.0.12 · 2.2.18
- Vendor fix Red Hat Product Security RHSA-2021:5070 · 3 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2021:0781 · 26 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHSA-2021:0780 · 2 productsFor information on upgrading Ansible Tower, reference the Ansible Tower Upgrade and Migration Guide: https://docs.ansible.com/ansible-tower/latest/html/upgrade-migration-guide/index.html
- No fix available, says the vendor Red Hat Product Security CVE-2021-3281 · 5 productsFix deferred
- No fix available, says the vendor Red Hat Product Security CVE-2021-3281 · 5 productsAffected
- No fix planned, says the vendor Red Hat Product Security CVE-2021-3281 · 6 productsOut of support scope
Advisories and patches
- docs.djangoproject.comPatch · Vendor Advisory
- www.djangoproject.comVendor Advisory
Detection
read 2026-11-01 01:02 UTC- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHub1 repository, unverifiedknown since 2026-11-01lwzSoviet/CVE-2021-3281
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.15.3read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- NVDweakness (CWE)CWE-22read 2026-10-23
- FIRST EPSSEPSS score7.6 %2026-12-04
- PoC-in-GitHubproof of concept1known since 2026-11-01
- OSVaffected packages—
- GitHub AdvisoriesadvisoryModerate2021-03-13
Identifiers
- BIT-django-2021-3281same flawBitnami · Apache-2.0
- EUVD-2021-0066same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-fvgf-6h6h-3322same flawGitHub Advisory Database · CC-BY-4.0
- PYSEC-2021-9same flawPyPA Advisory Database · CC-BY-4.0
- DLA-2540-1advisory covering several CVEsDebian · LicenseRef-unstated
- DLA-3164-1advisory covering several CVEsDebian · LicenseRef-unstated
- RHSA-2021:0781advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:3490advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:5070advisory covering several CVEsRed Hat · CC-BY-4.0
- SUSE-RU-2021:0351-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-RU-2021:0497-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:1963-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-4715-1advisory covering several CVEsUbuntu
- USN-4715-2advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Published
- 2021-02-02
- Last modified
- 2026-06-17
- NVD status
- Modified
- GitHub advisory
- GHSA-fvgf-6h6h-3322
Frequently asked questions
What is CVE-2021-3281?
Is CVE-2021-3281 actively exploited?
What is the CVSS score for CVE-2021-3281?
Running Django? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-fvgf-6h6h-3322
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0