# CVE-2021-45452: Directory-traversal in Django

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.59%, higher than 85% of CVEs (2026-12-01)
- Published: 2022-01-04T23:09:40.000Z
- Modified: 2026-09-08T08:46:25.513Z
- Also known as: GHSA-jrh2-hc4r-7jwx, BIT-DJANGO-2021-45452, PYSEC-2022-3
- Weaknesses: CWE-22
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): from 2.2 before 2.2.26; from 3.2 before 3.2.11; from 4.0 before 4.0.1
- djangoproject django: from 2.2 before 2.2.26; from 3.2 before 3.2.11; from 4.0 before 4.0.1
- fedoraproject fedora: 35
- 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.1

## Every score

- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://groups.google.com/forum/#%21forum/django-announce> (web)
- <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-45452> (advisory, web)
- <https://github.com/django/django/commit/4cb35b384ceef52123fc66411a73c36a706825e1> (web)
- <https://github.com/django/django/commit/8d2f7cff76200cbd2337b2cf1707e383eb1fb54b> (web)
- <https://github.com/django/django/commit/e1592e0f26302e79856cc7f2218ae848ae19b0f6> (web)
- <https://docs.djangoproject.com/en/4.0/releases/security> (web)
- <https://github.com/advisories/GHSA-jrh2-hc4r-7jwx> (advisory)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-3.yaml> (web)
- <https://groups.google.com/forum/#!forum/django-announce> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV> (web)
- <https://security.netapp.com/advisory/ntap-20220121-0005> (web)
- <https://www.djangoproject.com/weblog/2022/jan/04/security-releases> (web)

## Sources

- CVE List: [CVE-2021-45452](https://www.cve.org/CVERecord?id=CVE-2021-45452), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-jrh2-hc4r-7jwx](https://github.com/advisories/GHSA-jrh2-hc4r-7jwx), CC-BY-4.0, modified 2024-09-20
- NVD: [CVE-2021-45452](https://nvd.nist.gov/vuln/detail/CVE-2021-45452), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-3](https://osv.dev/vulnerability/PYSEC-2022-3), CC-BY-4.0, modified 2023-12-06
- Bitnami Vulnerability Database: [BIT-DJANGO-2021-45452](https://osv.dev/vulnerability/BIT-DJANGO-2021-45452), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-45452 · Whole record: https://cve.day/CVE-2021-45452.json · Rebuilt by cve.day 2026-11-25T22:58:06.402Z
