Skip to content
OpenAdvisories
High · 8.8 CVE-2022-36359 BIT-django-2022-36359EUVD-2022-0092GHSA-8x94-hmjh-97hqPYSEC-2022-245

Django vulnerable to Reflected File Download attack

Published Aug 3, 2022 · Updated Feb 13, 2025 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-django 3:3.2.15-1 —
Debian 13 python-django 3:3.2.15-1 —
Debian 12 python-django 3:3.2.15-1 —
Debian 11 python-django 2:2.2.28-1~deb11u1 DSA-5254-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS python-django 2:3.2.12-2ubuntu1.2 USN-5549-1
Ubuntu 20.04 LTS python-django 2:2.2.12-1ubuntu0.13 USN-5549-1
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP4 python-Django 2.2.28-bp154.2.3.3 openSUSE-SU-2022:10103-1
SUSE Package Hub 15 SP3 python-Django 2.2.28-bp153.2.3.1 openSUSE-SU-2023:0005-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Django 4.1-1.1 openSUSE-SU-2025:14662-1, openSUSE-SU-2024:12236-1
openSUSE Tumbleweed python-Django4 4.2.14-1.1 openSUSE-SU-2026:11235-1, openSUSE-SU-2024:14208-1
openSUSE Tumbleweed python-Django5 5.2.16-1.1 openSUSE-SU-2026:11270-1
openSUSE Tumbleweed python-Django6 6.0-1.1 openSUSE-SU-2026:10005-1
openSUSE Leap 15.4 python-Django 2.2.28-bp154.2.3.3 openSUSE-SU-2022:10103-1
openSUSE Leap 15.3 python-Django 2.2.28-bp153.2.3.1 openSUSE-SU-2023:0005-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-django 3.2.15-r0 —
Alpine v3.23 py3-django 3.2.15-r0 —
Alpine v3.22 py3-django 3.2.15-r0 —
Alpine v3.21 py3-django 3.2.15-r0 —
Alpine v3.20 py3-django 3.2.15-r0 —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-django 3.2.15-r0 —
Alpine v3.18 py3-django 3.2.15-r0 —
Alpine v3.17 py3-django 3.2.15-r0 —
Alpine v3.16 py3-django 3.2.16-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django < 3.2.15 3.2.15 GHSA-8x94-hmjh-97hq
PyPI django >= 4.0, < 4.0.7 4.0.7 GHSA-8x94-hmjh-97hq
PyPI django >= 3.2, < 3.2.15 · >= 4.0, < 4.0.7 3.2.15, 4.0.7 PYSEC-2022-245

Advisories 10

References