CVE-2021-28658

Aliases:GHSA-xgxc-v2qg-chmhBIT-django-2021-28658PYSEC-2021-6
Advisory lineage Upstream: 0 Downstream: 11
Modified
Published: 06 Apr 2021, 14:51
Last modified:03 Aug 2024, 21:47

Vulnerability Summary

Overall Risk (default)
low
22/100
CVSS Score
5.3 MEDIUM
v3.1 (nvd)
EPSS Score
1.5% LOW
2% probability -0.76%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

06 Apr 2021, 14:51
Published
Vulnerability first disclosed
03 Aug 2024, 21:47
Last Modified
Vulnerability information updated

Description

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.

CVSS Metrics

  • v4.0MEDIUMScore: 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
  • v3.1MEDIUMScore: 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • v2.0MEDIUMScore: 5AV:N/AC:L/Au:N/C:P/I:N/A:N

EPSS Trends

Current EPSS score: 1.50% Percentile: 81%

Techniques & Countermeasures

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

    The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Affected Systems

  • debiandebian_linux

    9.0

  • djangoprojectdjango

    ≥ 2.2, < 2.2.20 | ≥ 3.0, < 3.0.14 | ≥ 3.1, < 3.1.8

  • fedoraprojectfedora

    34

  • PyPIdjango

    ≥ 2.2a1, < 2.2.20 | ≥ 3.0a1, < 3.0.14 | ≥ 3.1a1, < 3.1.8 | ≥ 3.1, < 3.1.8

References (16)