CVE-2022-36359 — Vulnerability in django — CVE Details
Django vulnerable to Reflected File Download attack
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.79%). Schedule for your next planned update.
Does your project use an affected django version?
Paste your requirements.txt to check it for CVE-2022-36359 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published August 11, 2022 (1568 days ago).
- Last revised February 4, 2026 — 1272 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "django>=4.0.7"
pip install "django>=3.2.15"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: PyPI (1).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-494
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-36359ADVISORY
- https://github.com/django/django/commit/b3e4494d759202a3b6bf247fd34455bf13be5b80WEB
- https://github.com/django/django/commit/b7d9529cbe0af4adabb6ea5d01ed8dcce3668fb3WEB
- https://github.com/django/django/commit/bd062445cffd3f6cc6dcd20d13e2abed818fa173WEB
- https://docs.djangoproject.com/en/4.0/releases/securityWEB
- https://github.com/django/djangoPACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-245.yamlWEB
- https://groups.google.com/g/django-announce/c/8cz--gvaJr4WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IKWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQIWEB
- https://security.netapp.com/advisory/ntap-20220915-0008WEB
- https://www.debian.org/security/2022/dsa-5254WEB
- https://www.djangoproject.com/weblog/2022/aug/03/security-releasesWEB
- https://www.openwall.com/lists/oss-security/2022/08/03/1WEB
Frequently Asked Questions
- What is CVE-2022-36359?
- Django vulnerable to Reflected File Download attack. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2022-36359?
- CVE-2022-36359 affects django. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-36359 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is an above-median EPSS score — 52.8% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2020-24583HIGH
Django Incorrect Default Permissions
- CVE-2024-53908HIGH
Django SQL injection in HasKey(lhs, rhs) on Oracle
- CVE-2026-15307HIGH
Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing
- CVE-2026-53878MEDIUM
- CVE-2024-45230MEDIUM
Django vulnerable to denial-of-service attack via the urlize() and urlizetrunc() template filters
- CVE-2026-33033MEDIUM
Django has potential DoS via MultiPartParser through crafted multipart uploads
- CVE-2024-53907
- CVE-2024-53908