CVE-2021-3281PYSEC-2021-9BIT-DJANGO-2021-3281GHSA-FVGF-6H6H-3322
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"
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 2.2.18, 3.0.12, 3.1.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 1 proof of concept on GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- n/a n/a
Version range not reported
- djangoPyPI
From 2.2 · fixed in 2.2.18; From 3.0 · fixed in 3.0.12; From 3.1 · fixed in 3.1.6
- djangoPyPI
From 2.2 · fixed in 2.2.18
- djangoPyPI
From 3.1 · fixed in 3.1.6
- djangoPyPI
From 3.0 · fixed in 3.0.12