ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2021-3281

Details

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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:14.04:LTSpython-django
All versions before 1.6.11-0ubuntu1.3+esm2 (fixed in 1.6.11-0ubuntu1.3+esm2)
Ubuntu:16.04:LTSpython-django
All versions before 1.8.7-1ubuntu5.14 (fixed in 1.8.7-1ubuntu5.14)
Ubuntu:18.04:LTSpython-django
All versions before 1:1.11.11-1ubuntu1.10 (fixed in 1:1.11.11-1ubuntu1.10)
Ubuntu:20.04:LTSpython-django
All versions before 2:2.2.12-1ubuntu0.3 (fixed in 2:2.2.12-1ubuntu0.3)

References