django
Affected
- introduced
0, fixed2.2.24(ecosystem)
Fixed versions
2.2.24
Fix
- Fixed version
2.2.24pip install --upgrade django==2.2.24
Advisory
Also known as: BIT-django-2021-33203, CVE-2021-33203, PYSEC-2021-98
Path Traversal in Django
Django before 2.2.24, 3.x before 3.1.12, and 3.2.x before 3.2.4 has a potential directory traversal via django.contrib.admindocs. Staff members could use the TemplateDetailView view to check the existence of arbitrary files. Additionally, if (and only if) the default admindocs templates have been customized by application developers to also show file contents, then not only the existence but also the file contents would have been exposed. In other words, there is directory traversal outside of the template root directories.
Medium Basis: The source's own band: MODERATE
0, fixed 2.2.24 (ecosystem)2.2.24
2.2.24pip install --upgrade django==2.2.243.0, fixed 3.1.12 (ecosystem)3.1.12
3.1.12pip install --upgrade django==3.1.123.2, fixed 3.2.4 (ecosystem)3.2.4
3.2.4pip install --upgrade django==3.2.4Fix 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