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.
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-31535LookupCol.c in X.Org X through X11R7.7 and libX11 before 1.7…9.8
- CVE-2021-31537SIS SIS-REWE Go before 7.7 SP17 allows XSS: rewe/prod/web/in…6.1
- CVE-2021-31538LANCOM R&S Unified Firewall (UF) devices running LCOS FX 10.…7.5
- CVE-2021-31539Wowza Streaming Engine before 4.8.8.01 (in a default install…5.5
- CVE-2021-3154An issue was discovered in SolarWinds Serv-U before 15.2.2. …7.5
- CVE-2021-31540Wowza Streaming Engine through 4.8.5 (in a default installat…7.1
- CVE-2021-31545An issue was discovered in the AbuseFilter extension for Med…5.3
- CVE-2021-31546An issue was discovered in the AbuseFilter extension for Med…4.3
- CVE-2021-31547An issue was discovered in the AbuseFilter extension for Med…4.3
- CVE-2021-31548An issue was discovered in the AbuseFilter extension for Med…6.5
- CVE-2021-31549An issue was discovered in the AbuseFilter extension for Med…4.3
- CVE-2021-3155snapd 2.54.2 and earlier created ~/snap directories in user …5.5
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
