GitHub Advisoryadvisory · PyPI

GHSA-fvgf-6h6h-3322 Django Directory Traversal via archive.extract

MEDIUM Published 2021-03-18 Modified 2024-09-20 Official page ↗
Aliases
CVE-2021-3281
Ecosystem
PyPI
Packages
Django
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weaknesses
CWE-22
Reviewed
2021-03-13

Affected packages

• PyPI Django: >= 2.2, < 2.2.18 → fixed in 2.2.18 • PyPI Django: >= 3.1, < 3.1.6 → fixed in 3.1.6 • PyPI Django: >= 3.0, < 3.0.12 → fixed in 3.0.12

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.

Related

Alias · CVE (1)

  • CVE-2021-3281 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… vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References