What’s Vulnerable › Vulnerabilities
CVE-2022-36359: Django vulnerable to Reflected File Download attack
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-08-03 · updated 2026-06-17
- Weakness: CWE-494
Description
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.
Affected products
- Debian Linux: 11.0
- Django: from 3.2 before 3.2.15; from 4.0 before 4.0.7 — fixed in 3.2.15, 4.0.7
- Pypi Django: from 3.2 before 3.2.15; from 4.0 before 4.0.7; 3.2, 3.2.1, 3.2.10, 3.2.11, 3.2.12, 3.2.13 (+16) — fixed in 3.2.15, 4.0.7
How to fix
Upgrade to a fixed version: Django 3.2.15, 4.0.7; Pypi Django 3.2.15, 4.0.7. Check the vendor advisory for mitigations.
References
- http://www.openwall.com/lists/oss-security/2022/08/03/1
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://groups.google.com/g/django-announce/c/8cz--gvaJr4
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
- https://security.netapp.com/advisory/ntap-20220915-0008/
- https://www.debian.org/security/2022/dsa-5254
- https://www.djangoproject.com/weblog/2022/aug/03/security-releases/
- http://www.openwall.com/lists/oss-security/2022/08/03/1
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://groups.google.com/g/django-announce/c/8cz--gvaJr4
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
Get alerted when CVE-2022-36359 or the next vulnerability affects your stack