Live threats

All CVEs / Djangoproject

CVE-2022-36359Djangoproject Django

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
0.8%
probability of exploitation in 30 days · percentile 53
Auth required
No
Published
Aug 3, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-494
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django < 3.2.15 3.2.15 pip install "django>=3.2.15"
PyPI django ≥ 4.0 < 4.0.7 4.0.7 pip install "django>=4.0.7"
PyPI django ≥ 3.2 < 3.2.15 3.2.15 pip install "django>=3.2.15"
PyPI django ≥ 4.0 < 4.0.7 4.0.7 pip install "django>=4.0.7"

Per OSV / GitHub Advisories (GHSA-8x94-hmjh-97hq, PYSEC-2022-245). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 3.2 < 3.2.15
djangoprojectdjango≥ 4.0 < 4.0.7
debiandebian_linux11.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.