CVE-2021-45452
JSON

5.3medium

Directory-traversal in Django

Severity
5.3medium CVSS:3.1 by NVD
Exploit likelihood
2.59% (higher than 85% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-jrh2-hc4r-7jwxBIT-DJANGO-2021-45452PYSEC-2022-3

Description

Storage.save in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1 allows directory traversal if crafted filenames are directly passed to it.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
django (PyPI)from 2.2 before 2.2.26, from 3.2 before 3.2.11, from 4.0 before 4.0.1GitHub Advisory Database, PyPA Advisory Database
djangoproject djangofrom 2.2 before 2.2.26, from 3.2 before 3.2.11, from 4.0 before 4.0.1NVD
fedoraproject fedora35NVD
django (Bitnami)from 2.2.0 before 2.2.26, from 3.2.0 before 3.2.11, from 4.0.0 before 4.0.1Bitnami Vulnerability Database

All scores

GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:P/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

What each source says

CVE List

Storage.save in Django 2.2 before 2.2.26, 3.2 before 3.2.11, and 4.0 before 4.0.1 allows directory traversal if crafted filenames are directly passed to it.

NVD (es)

El archivo Storage.save en Django versiones 2.2 anteriores a 2.2.26, 3.2 anteriores a 3.2.11 y 4.0 anteriores a 4.0.1, permite un salto de directorio si le es pasado directamente nombres de archivos diseƱados.

References

https://groups.google.com/forum/#%21forum/django-announceweb
https://docs.djangoproject.com/en/4.0/releases/security/advisory, patch, vendor-advisory, web
https://www.djangoproject.com/weblog/2022/jan/04/security-releases/advisory, article, patch, vendor-advisory
https://security.netapp.com/advisory/ntap-20220121-0005/advisory, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV/vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2021-45452advisory, web
https://github.com/django/django/commit/4cb35b384ceef52123fc66411a73c36a706825e1web
https://github.com/django/django/commit/8d2f7cff76200cbd2337b2cf1707e383eb1fb54bweb
https://github.com/django/django/commit/e1592e0f26302e79856cc7f2218ae848ae19b0f6web
https://docs.djangoproject.com/en/4.0/releases/securityweb
https://github.com/advisories/GHSA-jrh2-hc4r-7jwxadvisory
https://github.com/django/djangopackage

Sources

SourceRecordLicence
CVE ListCVE-2021-45452 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-jrh2-hc4r-7jwx changed 2024-09-20CC-BY-4.0
NVDCVE-2021-45452 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2022-3 changed 2023-12-06CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2021-45452 changed 2026-09-08Apache-2.0