Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Django
  4. ›
  5. CVE-2022-36359

CVE-2022-36359: Django vulnerable to Reflected File Download attack

August 11, 2022 (updated December 18, 2024)

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.

References

  • docs.djangoproject.com/en/4.0/releases/security
  • github.com/advisories/GHSA-8x94-hmjh-97hq
  • github.com/django/django
  • github.com/django/django/commit/b3e4494d759202a3b6bf247fd34455bf13be5b80
  • github.com/django/django/commit/b7d9529cbe0af4adabb6ea5d01ed8dcce3668fb3
  • github.com/django/django/commit/bd062445cffd3f6cc6dcd20d13e2abed818fa173
  • github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-245.yaml
  • groups.google.com/g/django-announce/c/8cz--gvaJr4
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI
  • nvd.nist.gov/vuln/detail/CVE-2022-36359
  • security.netapp.com/advisory/ntap-20220915-0008
  • www.debian.org/security/2022/dsa-5254
  • www.djangoproject.com/weblog/2022/aug/03/security-releases

Code Behaviors & Features

Detect and mitigate CVE-2022-36359 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.2.15, all versions starting from 4.0 before 4.0.7

Fixed versions

  • 3.2.15
  • 4.0.7

Solution

Upgrade to versions 3.2.15, 4.0.7 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-494: Download of Code Without Integrity Check

Source file

pypi/Django/CVE-2022-36359.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:04 +0000.