Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [day] [month] [year] [list]
Date: Wed, 3 Aug 2022 09:54:16 +0200
From: Carlton Gibson <>
Subject: Django: CVE-2022-36359: Potential reflected file download
 vulnerability in FileResponse.


In accordance with `our security release policy
<>`_, the Django
is issuing
`Django 4.0.7 <>`_, and
`Django 3.2.15 <>`_.
These releases addresses the security issue detailed below. We encourage all
users of Django to upgrade as soon as possible.

CVE-2022-36359: Potential reflected file download vulnerability in

An application may have been vulnerable to a reflected file download (RFD)
attack that sets the Content-Disposition header of a ``FileResponse``
when the ``filename`` was derived from
user-supplied input. The ``filename`` is now escaped to avoid this

This issue has high severity, according to the Django security policy.

Thanks to Motoyasu Saburi for the report.

Affected supported versions

* Django main branch
* Django 4.1 (which will be released in a separate blog post later today)
* Django 4.0
* Django 3.2


Patches to resolve the issue have been applied to Django's main branch and
4.1, 4.0, and 3.2 release branches. The patches may be obtained from the
following changesets:

* On the `main branch <
* On the `4.1 release branch <
* On the `4.0 release branch <
* On the `3.2 release branch <

The following releases have been issued:

* Django 4.0.7 (`download Django 4.0.7 <>`_ |
`4.0.7 checksums <>`_)
* Django 3.2.15 (`download Django 3.2.15 <>`_ |
`3.2.15 checksums <>`_)

The PGP key ID used for this release is Carlton Gibson: `E17DF5C82B4F9D00 <>`_.

General notes regarding security reporting

As always, we ask that potential security issues be reported via
private email to ````, and not via Django's
Trac instance or the django-developers list. Please see `our security
policies <>`_ for further

Powered by blists - more mailing lists

Please check out the Open Source Software Security Wiki, which is counterpart to this mailing list.

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.