CVE-2022-36359
Django vulnerability analysis and mitigation

Overview

A reflected file download (RFD) vulnerability was discovered in Django versions 3.2 before 3.2.15 and 4.0 before 4.0.7, identified as CVE-2022-36359. The vulnerability affects the HTTP FileResponse class when the filename is derived from user-supplied input, potentially allowing attackers to manipulate the Content-Disposition header (Django Security, NVD).

Technical details

The vulnerability exists in the HTTP FileResponse class of Django where the Content-Disposition header could be manipulated when the filename parameter is derived from user-supplied input. The issue was addressed by implementing proper escaping of the filename parameter to prevent potential RFD attacks (Django Security). The vulnerability has been assigned a CVSS v3.1 base score of 8.8 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (NetApp Advisory).

Impact

Successful exploitation of this vulnerability could lead to disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS). The issue has been classified as having high severity according to Django's security policy (NetApp Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Django versions 4.0.7 and 3.2.15. Users are strongly encouraged to upgrade to these patched versions. The fixes include proper escaping of filenames in the FileResponse class. Patches have been applied to Django's main branch and the 4.1, 4.0, and 3.2 release branches (Django Security).

Community reactions

The vulnerability was responsibly disclosed by security researcher Motoyasu Saburi. Various organizations and Linux distributions have issued security advisories and patches in response to this vulnerability, including NetApp, Debian, and Fedora (Debian Security, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related Django vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59681CRITICAL9.8
  • DjangoDjango
  • python311-Django
NoYesOct 01, 2025
CVE-2025-64459CRITICAL9.1
  • DjangoDjango
  • py3-django
NoYesNov 05, 2025
CVE-2025-57833HIGH8.1
  • DjangoDjango
  • python-django
NoYesSep 03, 2025
CVE-2025-64458HIGH7.5
  • DjangoDjango
  • py3-django
NoYesNov 05, 2025
CVE-2025-59682MEDIUM6.5
  • DjangoDjango
  • py3-django
NoYesOct 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management