CVE-2022-36359: High severity djangoproject Django vulnerability

Published Aug 3, 2022
·
Updated

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 Software

18 affected componentsFixes available
pip/django<3.2.15
3.2.15
pip/django>=4.0<4.0.7
4.0.7
djangoproject Django>=3.2<3.2.15
djangoproject Django>=4.0<4.0.7
Debian Debian Linux=11.0
alpine/py3-django<3.2.16-r0
3.2.16-r0
alpine/py3-django<3.2.15-r0
3.2.15-r0
alpine/py3-django<3.2.15-r0
3.2.15-r0
alpine/py3-django<3.2.15-r0
3.2.15-r0
alpine/py3-django<3.2.15-r0
3.2.15-r0
alpine/py3-django<3.2.15-r0
3.2.15-r0
alpine/py3-django<3.2.15-r0
3.2.15-r0
alpine/py3-django<3.2.15-r0
3.2.15-r0
alpine/py3-django<3.2.15-r0
3.2.15-r0
debian/python-django<3:3.2.15-1
3:3.2.15-1
debian/python-django<3:3.2.15-1
3:3.2.15-1
debian/python-django<3:3.2.15-1
3:3.2.15-1
debian/python-django
3:3.2.25-0+deb12u33:3.2.25-0+deb12u63:4.2.28-0+deb13u23:4.2.28-0+deb13u13:5.2.17-23:5.2.19-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 3.2.15
  2. Upgrade

    Upgrade pip/Django to a version that resolves this vulnerability.

    Fixed in 4.0.7
  3. Upgrade

    Upgrade alpine/py3-django to a version that resolves this vulnerability.

    Fixed in 3.2.16-r0
  4. Upgrade

    Upgrade alpine/py3-django to a version that resolves this vulnerability.

    Fixed in 3.2.15-r0
  5. Upgrade

    Upgrade debian/python-django to a version that resolves this vulnerability.

    Fixed in 3:3.2.15-1
  6. Upgrade

    Upgrade debian/python-django to a version that resolves this vulnerability.

    Fixed in 3:3.2.25-0+deb12u3Fixed in 3:3.2.25-0+deb12u6Fixed in 3:4.2.28-0+deb13u2Fixed in 3:4.2.28-0+deb13u1Fixed in 3:5.2.17-2Fixed in 3:5.2.19-1

Event History

Aug 3, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:15 PM
DescriptionSeverityAffected Software
Aug 11, 2022
Advisory Published
via GitHub·02:49 PM
Data Sourced
via GitHub·02:49 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2022-36359?

CVE-2022-36359 is a vulnerability in the HTTP FileResponse class in Django 3.2 before 3.2.15 and 4.0 before 4.0.7 that allows for a reflected file download attack.

2

How does CVE-2022-36359 affect Django?

CVE-2022-36359 affects Django versions 3.2 before 3.2.15 and 4.0 before 4.0.7.

3

What is the severity of CVE-2022-36359?

The severity of CVE-2022-36359 is high, with a CVSS score of 8.8.

4

How can I fix CVE-2022-36359 in Django?

To fix CVE-2022-36359 in Django, you should upgrade to Django version 3.2.15 or 4.0.7.

5

Where can I find more information about CVE-2022-36359?

You can find more information about CVE-2022-36359 at the following references: [Openwall](http://www.openwall.com/lists/oss-security/2022/08/03/1), [Django Releases](https://docs.djangoproject.com/en/4.0/releases/security/), and [Django Google Group](https://groups.google.com/g/django-announce/c/8cz--gvaJr4).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203