CVE-2021-3281
python-django - security update
5.3
MEDIUM
CVSS 3.1
EPSS 41.5%
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.
How to fix CVE-2021-3281
To remediate CVE-2021-3281, upgrade the affected package to a fixed version below.
- Bitnami/django—upgrade to 2.2.18 or later
- —upgrade to 2:2.2.18-1 or later
- —upgrade to 1:1.10.7-2+deb9u10 or later
- —upgrade to 2.2.18 or later
- —upgrade to 2.2.18 or later
Is CVE-2021-3281 being exploited?
Moderate — EPSS is 41.5%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (5)
- >= 2.2.0, < 2.2.18, >= 3.0.0, < 3.0.12, >= 3.1.0, < 3.1.6
- from 0, < 2:2.2.18-1
- from 0, < 1:1.10.7-2+deb9u10
- >= 2.2, < 2.2.18
- >= 2.2, < 2.2.18, >= 3.0, < 3.0.12, >= 3.1, < 3.1.6
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |