CVE-2021-31542
7.5high
Path Traversal in Django
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 4.73% (higher than 92% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-rxjp-mfm9-w4wrBIT-DJANGO-2021-31542PYSEC-2021-7
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django (PyPI) | from 2.2 before 2.2.21, from 3.0 before 3.1.9, from 3.2 before 3.2.1, from 3.1 before 3.1.9 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 2.2 before 2.2.21, from 3.1 before 3.1.9, from 3.2 before 3.2.1 | NVD |
| debian debian_linux | 9.0 | NVD |
| fedoraproject fedora | 34, 35 | NVD |
| django (Bitnami) | from 2.2.0 before 2.2.21, from 3.1.0 before 3.1.9, from 3.2.0 before 3.2.1 | Bitnami Vulnerability Database |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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.
NVD (es)
En Django versiones 2.2 anteriores a 2.2.21, versiones 3.1 anteriores a 3.1.9 y versiones 3.2 anteriores a 3.2.1, MultiPartParser, UploadedFile y FieldFile, permitían un salto de directorio por medio de archivos cargados con nombres de archivo cuidadosamente diseñados
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31542 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rxjp-mfm9-w4wr changed 2024-09-20 | CC-BY-4.0 |
| NVD | CVE-2021-31542 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2021-7 changed 2023-12-06 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2021-31542 changed 2026-09-08 | Apache-2.0 |