CVE-2021-31542
JSON

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 packageVersionsReported by
Unspecified productn/aCVE 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.9GitHub Advisory Database, PyPA Advisory Database
djangoproject djangofrom 2.2 before 2.2.21, from 3.1 before 3.1.9, from 3.2 before 3.2.1NVD
debian debian_linux9.0NVD
fedoraproject fedora34, 35NVD
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.1Bitnami Vulnerability Database

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N
Bitnami Vulnerability Databasehigh 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

https://groups.google.com/forum/#%21forum/django-announceweb
https://docs.djangoproject.com/en/3.2/releases/security/advisory, patch, vendor-advisory, web
http://www.openwall.com/lists/oss-security/2021/05/04/3advisory, mailing-list, patch, third-party-advisory, web
https://www.djangoproject.com/weblog/2021/may/04/security-releases/advisory, article, release-notes, vendor-advisory
https://lists.debian.org/debian-lts-announce/2021/05/msg00005.htmladvisory, mailing-list, third-party-advisory, web
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE/vendor-advisory, web
https://security.netapp.com/advisory/ntap-20210618-0001/advisory, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/vendor-advisory, web
https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26dweb
https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48web
https://github.com/django/django/commit/c98f446c188596d4ba6de71d1b77b4a6c5c2a007web
https://nvd.nist.gov/vuln/detail/CVE-2021-31542advisory, web

Sources

SourceRecordLicence
CVE ListCVE-2021-31542 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-rxjp-mfm9-w4wr changed 2024-09-20CC-BY-4.0
NVDCVE-2021-31542 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2021-7 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2021-31542 changed 2026-09-08Apache-2.0