PT-2021-3618 · Django+3 · Django+3
Wang Baohua
·
Published
2021-02-01
·
Updated
2024-03-06
·
CVE-2021-3281
CVSS v4.0
6.9
Medium
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
Django versions 2.2 before 2.2.18
Django versions 3.0 before 3.0.12
Django versions 3.1 before 3.1.6
Description
The issue is related to the
django.utils.archive.extract method, which is used by "startapp --template" and "startproject --template". This method allows directory traversal via an archive with absolute paths or relative paths with dot segments. The vulnerability may allow a remote attacker to impact data integrity.Recommendations
For Django versions 2.2 before 2.2.18, update to version 2.2.18 or later.
For Django versions 3.0 before 3.0.12, update to version 3.0.12 or later.
For Django versions 3.1 before 3.1.6, update to version 3.1.6 or later.
As a temporary workaround, consider disabling the
django.utils.archive.extract method until a patch is available.Fix
Path traversal
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Astra Linux
Django
Linuxmint
Ubuntu