High severity · published May 5, 2021
CVE-2021-31542
In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably…
7.5
CVSS
5.3%
EPSS
No
On KEV
Description
In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably crafted file names.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)5.3% · higher than 93% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
9.0 · source: NVD
DJ
Django · Djangoproject
2.2 before 2.2.21; 3.1 before 3.1.9; 3.2 before 3.2.1 · source: NVD
FE
Fedora · Fedoraproject
34; 35 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-31542
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-31542
Mailing List
http://www.openwall.com/lists/oss-security/2021/05/04/3
Patch
https://docs.djangoproject.com/en/3.2/releases/security/
github.com
https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d
github.com
https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48
github.com
https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007
groups.google.com
https://groups.google.com/forum/#%21forum/django-announce
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-111497
Out-of-Bounds Write in Google Brotli Decoder
