CVE-2021-3281

django: Potential directory-traversal via archive.extract()

Published Feb 2, 2021 CVSS 3.1 · 5.3 Medium EPSS 7.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-2540-1 python-django security update
Debian DLA Debian DLA DLA-3164-1 python-django security update
Github GHSA Github GHSA GHSA-fvgf-6h6h-3322 Django Directory Traversal via archive.extract
Ubuntu USN Ubuntu USN USN-4715-1 Django vulnerability
Ubuntu USN Ubuntu USN USN-4715-2 Django vulnerability
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 3, 2024, 4:53 PM
Reserved
Jan 22, 2021, 12:00 AM
Status
Modified
Published
Feb 2, 2021, 7:15 AM
Modified
Jun 17, 2026, 4:04 AM
Severity
Moderate
Public date
Feb 1, 2021, 10:00 AM