CVE-2021-3281

Aliases:GHSA-fvgf-6h6h-3322BIT-django-2021-3281PYSEC-2021-9
Advisory lineage Upstream: 0 Downstream: 12
Modified
Published: 02 Feb 2021, 06:16
Last modified:03 Aug 2024, 16:53

Vulnerability Summary

Overall Risk (default)
medium
29/100
CVSS Score
5.3 MEDIUM
v3.1 (nvd)
EPSS Score
41.48% HIGH
41% probability +11.31%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

02 Feb 2021, 06:16
Published
Vulnerability first disclosed
03 Aug 2024, 16:53
Last Modified
Vulnerability information updated

Description

In Django 2.2 before 2.2.18, 3.0 before 3.0.12, and 3.1 before 3.1.6, the django.utils.archive.extract method (used by "startapp --template" and "startproject --template") allows directory traversal via an archive with absolute paths or relative paths with dot segments.

CVSS Metrics

  • v4.0MEDIUMScore: 6.9CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/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:N/I:L/A:N
  • v2.0MEDIUMScore: 5AV:N/AC:L/Au:N/C:N/I:P/A:N

EPSS Trends

Current EPSS score: 41.48% Percentile: 97%

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

  • djangoprojectdjango

    ≥ 2.2, < 2.2.18 | ≥ 3.0, < 3.0.12 | ≥ 3.1, < 3.1.6

  • fedoraprojectfedora

    33

  • netappsnapcenter

    na

  • PyPIdjango

    ≥ 2.2, < 2.2.18 | ≥ 3.0, < 3.0.12 | ≥ 3.1, < 3.1.6

References (20)