CVE-2021-31542

Aliases:GHSA-rxjp-mfm9-w4wrBIT-django-2021-31542PYSEC-2021-7
Modified
Published: 05 May 2021, 00:00
Last modified:03 Aug 2024, 23:03

Vulnerability Summary

Overall Risk (default)
medium
31/100
CVSS Score
7.5 HIGH
v3.1 (nvd)
EPSS Score
4.36% LOW
4% probability -0.84%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

05 May 2021, 00:00
Published
Vulnerability first disclosed
03 Aug 2024, 23:03
Last Modified
Vulnerability information updated

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.

CVSS Metrics

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

EPSS Trends

Current EPSS score: 4.36% Percentile: 89%

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.21 | ≥ 3.1, < 3.1.9 | ≥ 3.2, < 3.2.1

  • fedoraprojectfedora

    34 | 35

  • PyPIdjango

    ≥ 2.2, < 2.2.21 | ≥ 3.0, < 3.1.9 | ≥ 3.2, < 3.2.1

References (24)