CVE-2021-31542Path Traversal in Django

Severity
7.5HIGHNVD
EPSS
6.9%
top 8.59%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 5
Latest updateJun 4

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:NExploitability: 3.9 | Impact: 3.6

Affected Packages2 packages

NVDdjangoproject/django2.22.2.21+2
PyPIdjangoproject/django2.22.2.21+2

Also affects: Debian Linux 9.0, Fedora 34, 35

Patches

🔴Vulnerability Details

4
OSV
Path Traversal in Django2021-06-04
GHSA
Path Traversal in Django2021-06-04
OSV
CVE-2021-31542: In Django 22021-05-05
CVEList
CVE-2021-31542: In Django 22021-05-05

📋Vendor Advisories

4
Ubuntu
Django vulnerability2021-05-13
Red Hat
django: Potential directory-traversal via uploaded files2021-05-04
Ubuntu
Django vulnerability2021-05-04
Debian
CVE-2021-31542: python-django - In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartPa...2021
CVE-2021-31542 — Path Traversal in Djangoproject Django | cvebase