django
Affected
- introduced
2.2, fixed2.2.18(ecosystem)
Fixed versions
2.2.18
Fix
- Fixed version
2.2.18pip install --upgrade django==2.2.18
Advisory
Also known as: BIT-django-2021-3281, CVE-2021-3281, PYSEC-2021-9
Django Directory Traversal via archive.extract
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.
Medium Basis: The source's own band: MODERATE
2.2, fixed 2.2.18 (ecosystem)2.2.18
2.2.18pip install --upgrade django==2.2.183.1, fixed 3.1.6 (ecosystem)3.1.6
3.1.6pip install --upgrade django==3.1.63.0, fixed 3.0.12 (ecosystem)3.0.12
3.0.12pip install --upgrade django==3.0.12Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0