Path traversal in Django

Published: 2021-04-06
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-28658
Exploitation vector Network
Public exploit N/A
Vulnerable software
Web applications / CMS

Vendor Django Software Foundation

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Path traversal

EUVDB-ID: #VU51936

Risk: Medium


CVE-ID: CVE-2021-28658

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Exploit availability: No


The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences in MultiPartParser. A remote attacker can use a specially crafted files with suitably crafted file names and read arbitrary files on the system.


Install update from vendor's website.

Vulnerable software versions

Django: 2.2 - 2.2.19, 3.0 - 3.2

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?