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

CVE-2021-28658: Directory Traversal in Django

April 8, 2021 (updated September 20, 2024)

In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected by this vulnerability.

References

  • docs.djangoproject.com/en/3.1/releases/security
  • github.com/advisories/GHSA-xgxc-v2qg-chmh
  • github.com/django/django
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2021-6.yaml
  • groups.google.com/g/django-announce/c/ePr5j-ngdPU
  • lists.debian.org/debian-lts-announce/2021/04/msg00008.html
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZVKYPHR3TKR2ESWXBPOJEKRO2OSJRZUE
  • nvd.nist.gov/vuln/detail/CVE-2021-28658
  • pypi.org/project/Django
  • security.netapp.com/advisory/ntap-20210528-0001
  • www.djangoproject.com/weblog/2021/apr/06/security-releases

Code Behaviors & Features

Detect and mitigate CVE-2021-28658 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.2a1 before 2.2.20, all versions starting from 3.0a1 before 3.0.14, all versions starting from 3.1a1 before 3.1.8

Fixed versions

  • 2.2.20
  • 3.0.14
  • 3.1.8

Solution

Upgrade to versions 2.2.20, 3.0.14, 3.1.8 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-28658.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:15 +0000.