Advisory

GHSA-rxjp-mfm9-w4wr

Also known as: BIT-django-2021-31542, CVE-2021-31542, PYSEC-2021-7

Summary

Path Traversal in Django

Details

In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably crafted file names.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-06-04 21:15 UTC
Modified
2024-09-20 15:33 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.2, fixed 2.2.21 (ecosystem)

Fixed versions

2.2.21

Fix

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

django

PyPI · All systems

Affected

  • introduced 3.0, fixed 3.1.9 (ecosystem)

Fixed versions

3.1.9

Fix

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

django

PyPI · All systems

Affected

  • introduced 3.2, fixed 3.2.1 (ecosystem)

Fixed versions

3.2.1

Fix

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

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