CVE-2021-31542
HIGHCVSS 7.5/10EPSS 5.29%
Last modified
CVE-2021-31542 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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.. EPSS estimates a 5.29% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Djangoproject | Django | >= 2.2, < 2.2.21 |
| Djangoproject | Django | >= 3.1, < 3.1.9 |
| Djangoproject | Django | >= 3.2, < 3.2.1 |
| Debian | Debian Linux | 9.0 |
| Fedoraproject | Fedora | 34 |
| Fedoraproject | Fedora | 35 |
References
- http://www.openwall.com/lists/oss-security/2021/05/04/3Mailing List, Patch, Third Party Advisory
- https://docs.djangoproject.com/en/3.2/releases/security/Patch, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00005.htmlMailing List, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210618-0001/Third Party Advisory
- https://www.djangoproject.com/weblog/2021/may/04/security-releases/Release Notes, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2021/05/04/3Mailing List, Patch, Third Party Advisory
- https://docs.djangoproject.com/en/3.2/releases/security/Patch, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2021/05/msg00005.htmlMailing List, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20210618-0001/Third Party Advisory
- https://www.djangoproject.com/weblog/2021/may/04/security-releases/Release Notes, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is 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 crafted file names.
How severe is CVE-2021-31542?
CVE-2021-31542 has a CVSS score of 7.5/10 (HIGH severity). The EPSS model estimates a 5.29% probability of exploitation in the next 30 days.
How do I fix CVE-2021-31542?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.
Are you affected by CVE-2021-31542?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
