CVE-2021-31542
High
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.
SeverityHigh
CVSS7.5
Exploit probability—
Product
Django
PublishedMay 5, 2021
First seenMay 5, 2021
How to fix
Update
- djangoproject django2.2.21, 3.1.9, 3.2.1 or later
- django2.2.21, 3.1.9, 3.2.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| djangoproject django | 2.2 ≤ v < 2.2.21, 3.1 ≤ v < 3.1.9, 3.2 ≤ v < 3.2.1 | 2.2.21, 3.1.9, 3.2.1 |
| debian debian_linux | 9.0 | — |
| fedoraproject fedora | 34, 35 | — |
| djangoPyPI | 2.2 ≤ v < 2.2.21, 3.0 ≤ v < 3.1.9, 3.2 ≤ v < 3.2.1, 3.1 ≤ v < 3.1.9 | 2.2.21, 3.1.9, 3.2.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.