Advisory

GHSA-xgxc-v2qg-chmh

Also known as: BIT-django-2021-28658, CVE-2021-28658, PYSEC-2021-6

Summary

Directory Traversal in Django

Details

In Django 2.2 before 2.2.20, 3.0 before 3.0.14, and 3.1 before 3.1.8, MultiPartParser allowed directory traversal via uploaded files with suitably crafted file names. Built-in upload handlers were not affected by this vulnerability.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-04-08 18:11 UTC
Modified
2024-09-20 16:08 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2a1, fixed 2.2.20 (ecosystem)

Fixed versions

2.2.20

Fix

  • Fixed version 2.2.20
    pip install --upgrade django==2.2.20

django

PyPI · All systems

Affected

  • introduced 3.0a1, fixed 3.0.14 (ecosystem)

Fixed versions

3.0.14

Fix

  • Fixed version 3.0.14
    pip install --upgrade django==3.0.14

django

PyPI · All systems

Affected

  • introduced 3.1a1, fixed 3.1.8 (ecosystem)

Fixed versions

3.1.8

Fix

  • Fixed version 3.1.8
    pip install --upgrade django==3.1.8

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences