GitHub Advisoryadvisory · PyPI

GHSA-rxjp-mfm9-w4wr Path Traversal in Django

HIGH Published 2021-06-04 Modified 2024-09-20 Official page ↗
Aliases
CVE-2021-31542
Ecosystem
PyPI
Packages
Django
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22, CWE-434
Reviewed
2021-05-19

Affected packages

• PyPI Django: >= 2.2, < 2.2.21 → fixed in 2.2.21 • PyPI Django: >= 3.0, < 3.1.9 → fixed in 3.1.9 • PyPI Django: >= 3.2, < 3.2.1 → fixed in 3.2.1

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.

Related

Alias · CVE (1)

  • CVE-2021-31542 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… vulnerability

Weakness · CWE (2)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
  • CWE-434 Unrestricted Upload of File with Dangerous Type weakness

References