CVE-2021-3281
Medium
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.
SeverityMedium
CVSS5.3
Exploit probability—
Product
Django
PublishedFeb 2, 2021
First seenFeb 2, 2021
How to fix
Update
- djangoproject django2.2.18, 3.0.12, 3.1.6 or later
- django2.2.18, 3.1.6, 3.0.12 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| djangoproject django | 2.2 ≤ v < 2.2.18, 3.0 ≤ v < 3.0.12, 3.1 ≤ v < 3.1.6 | 2.2.18, 3.0.12, 3.1.6 |
| fedoraproject fedora | 33 | — |
| netapp snapcenter | No range specified | — |
| djangoPyPI | 2.2 ≤ v < 2.2.18, 3.1 ≤ v < 3.1.6, 3.0 ≤ v < 3.0.12 | 2.2.18, 3.1.6, 3.0.12 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.