Reflected File Download (RFD) Affecting django-sendfile2 package, versions [,0.7.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-DJANGOSENDFILE2-2980122
  • published12 Aug 2022
  • disclosed11 Aug 2022
  • creditSergei Maertens

Introduced: 11 Aug 2022

CVE NOT AVAILABLE CWE-494  (opens in a new tab)

How to fix?

Upgrade django-sendfile2 to version 0.7.0 or higher.

Overview

django-sendfile2 is an Abstraction to offload file uploads to web-server (e.g. Apache with mod_xsendfile) once Django has checked permissions etc.

Affected versions of this package are vulnerable to Reflected File Download (RFD) in the sendfile() function in utils.py. An attacker can cause the loading of a malicious file by supplying a crafted attachment filename. This is parallel to the vulnerability in Django described by CVE-2022-36359.

CVSS Base Scores

version 3.1