What’s Vulnerable › Vulnerabilities

CVE-2021-31542: Path Traversal in Django

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.

Affected products

How to fix

Upgrade to a fixed version: Django 2.2.21, 3.1.9, 3.2.1; Pypi Django 2.2.21, 3.1.9, 3.2.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-31542 or the next vulnerability affects your stack