First published: Tue Mar 30 2021(Updated: )
In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected by this vulnerability.
Credit: cve@mitre.org cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
Djangoproject Django | >=2.2<2.2.20 | |
Djangoproject Django | >=3.0<3.0.14 | |
Djangoproject Django | >=3.1<3.1.8 | |
Debian Debian Linux | =9.0 | |
Fedoraproject Fedora | =34 | |
redhat/python-django | <2.2 | 2.2 |
redhat/python-django | <3.0 | 3.0 |
redhat/python-django | <3.2 | 3.2 |
pip/Django | >=3.1a1<3.1.8 | 3.1.8 |
pip/Django | >=3.0a1<3.0.14 | 3.0.14 |
pip/Django | >=2.2a1<2.2.20 | 2.2.20 |
>=2.2<2.2.20 | ||
>=3.0<3.0.14 | ||
>=3.1<3.1.8 | ||
=9.0 | ||
=34 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-28658 is a vulnerability in Django versions 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8 that allows directory traversal via uploaded files with suitably crafted file names.
CVE-2021-28658 impacts Django by allowing malicious users to perform directory traversal by exploiting the vulnerability in the MultiPartParser.
The versions of Django affected by CVE-2021-28658 are 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8.
The severity of CVE-2021-28658 is medium, with a severity score of 5.3.
To fix CVE-2021-28658, you should update Django to versions 2.2.20, 3.0.14, or 3.1.8.