CVE-2021-3281: Django - Path Traversal
- Cve: CVE-2021-3281
- Name: Django - Path Traversal
- 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.
- Impact: Attackers can extract files to arbitrary locations, potentially leading to code execution or system compromise.
- Remediation: Update to Django 2.2.18, 3.0.12, 3.1.6 or later versions.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.3
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- Epss score: 0.07605
- Epss percentile: 0.94694
- Assignee: [email protected]
- Published at: 2021-02-02T07:15:14Z
- Age in days: 2121
- Modified at: 2026-06-17T04:04:53Z
- Patch available: yes
- Public exploits total: 1
- References total: 5
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-3281
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Hackerone
- Reports: 2
- Rank: 3806
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/lwzSoviet/CVE-2021-3281 | poc-in-github | 2021-07-05 |
References
Same in every row:
- Source: nvd
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| djangoproject:django | >= 3.1, < 3.1.6; >= 3.0, < 3.0.12; >= 2.2, < 2.2.18 | /v1/products/djangoproject/django |
| fedoraproject:fedora | = 33 | /v1/products/fedoraproject/fedora |
| netapp:snapcenter | all versions | /v1/products/netapp/snapcenter |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| django/django | commit, fix, package | yes | /v1/repositories/django/django |
Index
- Repositories: 98
- Repositories high signal: 37
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-07-05
- Remote: yes
- Hackerone reports: 2
- Exposed hosts: 2404431
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since