CVE-2021-28658: Django - Path Traversal
- Cve: CVE-2021-28658
- Name: Django - Path Traversal
- Description: In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected by this vulnerability.
- Impact: Attackers can access arbitrary directories on the server, potentially leading to information disclosure or file tampering.
- Remediation: Update to Django 2.2.20, 3.0.14, 3.1.8 or later versions.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_read, file_system_write
- Requirement type: user_interaction
- Requirements: Attacker needs to upload files with crafted file names
- 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:L/I:N/A:N
- Epss score: 0.03761
- Epss percentile: 0.9018
- Assignee: [email protected]
- Published at: 2021-04-06T15:15:13Z
- Age in days: 2058
- Modified at: 2026-06-17T03:46:43Z
- Patch available: yes
- References total: 6
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-28658
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://docs.djangoproject.com/en/3.1/releases/security/ | Vendor Advisory |
| https://www.djangoproject.com/weblog/2021/apr/06/security-releases/ | Vendor Advisory |
| https://groups.google.com/g/django-announce/c/ePr5j-ngdPU | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/04/msg00008.html | Mailing List, Third Party Advisory |
| https://security.netapp.com/advisory/ntap-20210528-0001/ | Third Party Advisory |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/ |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| djangoproject:django | >= 3.1, < 3.1.8; >= 3.0, < 3.0.14; >= 2.2, < 2.2.20 | /v1/products/djangoproject/django |
| debian:debian_linux | = 9.0 | /v1/products/debian/debian_linux |
| fedoraproject:fedora | = 34 | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| django/django | package | yes | /v1/repositories/django/django |
Index
- Repositories: 100
- Repositories high signal: 37
- Packages: 1
Exploitation
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports