Advisory

PYSEC-2022-245

Also known as: BIT-django-2022-36359, CVE-2022-36359, GHSA-8x94-hmjh-97hq

Summary

The record has no summary.

Details

An issue was discovered in the HTTP FileResponse class in Django 3.2 before 3.2.15 and 4.0 before 4.0.7. An application is vulnerable to a reflected file download (RFD) attack that sets the Content-Disposition header of a FileResponse when the filename is derived from user-supplied input.

Severity

Not rated by the source.

Dates

Published
2022-08-03 14:15 UTC
Modified
2025-01-14 11:27 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 3.2, fixed 3.2.15, introduced 4.0, fixed 4.0.7 (ecosystem)

Fixed versions

3.2.15, 4.0.7

Fix

  • Fixed version 3.2.15
    pip install --upgrade django==3.2.15
  • Fixed version 4.0.7
    pip install --upgrade django==4.0.7

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: PyPA Advisory Database · CC BY 4.0

Sources & licences