Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2021-45452

CVE-2021-45452: Directory-traversal in Django

January 12, 2022 (updated September 20, 2024)

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.

References

  • docs.djangoproject.com/en/4.0/releases/security
  • github.com/advisories/GHSA-jrh2-hc4r-7jwx
  • github.com/django/django
  • github.com/django/django/commit/4cb35b384ceef52123fc66411a73c36a706825e1
  • github.com/django/django/commit/8d2f7cff76200cbd2337b2cf1707e383eb1fb54b
  • github.com/django/django/commit/e1592e0f26302e79856cc7f2218ae848ae19b0f6
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-3.yaml
  • groups.google.com/forum/
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/B4SQG2EAF4WCI2SLRL6XRDJ3RPK3ZRDV
  • nvd.nist.gov/vuln/detail/CVE-2021-45452
  • security.netapp.com/advisory/ntap-20220121-0005
  • www.djangoproject.com/weblog/2022/jan/04/security-releases

Code Behaviors & Features

Detect and mitigate CVE-2021-45452 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.2 before 2.2.26, all versions starting from 3.2 before 3.2.11, all versions starting from 4.0 before 4.0.1

Fixed versions

  • 2.2.26
  • 3.2.11
  • 4.0.1

Solution

Upgrade to versions 2.2.26, 3.2.11, 4.0.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/Django/CVE-2021-45452.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.