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—
ProductDjango
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

ProductAffected versionsFixed in
djangoproject django2.2 ≤ v < 2.2.18, 3.0 ≤ v < 3.0.12, 3.1 ≤ v < 3.1.62.2.18, 3.0.12, 3.1.6
fedoraproject fedora33—
netapp snapcenterNo range specified—
djangoPyPI2.2 ≤ v < 2.2.18, 3.1 ≤ v < 3.1.6, 3.0 ≤ v < 3.0.122.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.

CVE-2021-3281 · Django · Dark Radar