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

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.94%, higher than 61% of CVEs (2026-12-01)
- Published: 2022-08-03T00:00:00.000Z
- Modified: 2026-09-08T08:46:32.661Z
- Also known as: GHSA-8x94-hmjh-97hq, BIT-DJANGO-2022-36359, PYSEC-2022-245
- Related: CVE-2022-45442
- Weaknesses: CWE-494
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): before 3.2.15; from 4.0 before 4.0.7; from 3.2 before 3.2.15
- djangoproject django: from 3.2 before 3.2.15; from 4.0 before 4.0.7
- debian debian_linux: 11.0
- django (Bitnami): from 3.2.0 before 3.2.15; from 4.0.0 before 4.0.7

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://docs.djangoproject.com/en/4.0/releases/security/> (advisory, not-applicable, patch, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/08/03/1> (advisory, mailing-list, patch, third-party-advisory, web)
- <https://groups.google.com/g/django-announce/c/8cz--gvaJr4> (advisory, release-notes, third-party-advisory, web)
- <https://www.djangoproject.com/weblog/2022/aug/03/security-releases/> (advisory, article, patch, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20220915-0008/> (advisory, third-party-advisory)
- <https://www.debian.org/security/2022/dsa-5254> (advisory, third-party-advisory, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/> (vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-36359> (advisory, web)
- <https://github.com/django/django/commit/b3e4494d759202a3b6bf247fd34455bf13be5b80> (web)
- <https://github.com/django/django/commit/b7d9529cbe0af4adabb6ea5d01ed8dcce3668fb3> (web)
- <https://github.com/django/django/commit/bd062445cffd3f6cc6dcd20d13e2abed818fa173> (web)
- <https://docs.djangoproject.com/en/4.0/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-245.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI> (web)
- <https://security.netapp.com/advisory/ntap-20220915-0008> (web)
- <https://www.djangoproject.com/weblog/2022/aug/03/security-releases> (web)
- <https://github.com/advisories/GHSA-8x94-hmjh-97hq> (advisory)

## Sources

- CVE List: [CVE-2022-36359](https://www.cve.org/CVERecord?id=CVE-2022-36359), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-8x94-hmjh-97hq](https://github.com/advisories/GHSA-8x94-hmjh-97hq), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2022-36359](https://nvd.nist.gov/vuln/detail/CVE-2022-36359), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-245](https://osv.dev/vulnerability/PYSEC-2022-245), CC-BY-4.0, modified 2025-01-14
- Bitnami Vulnerability Database: [BIT-DJANGO-2022-36359](https://osv.dev/vulnerability/BIT-DJANGO-2022-36359), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-36359 · Whole record: https://cve.day/CVE-2022-36359.json · Rebuilt by cve.day 2026-11-25T22:58:13.376Z
