All vulnerabilities
GHSA-6r3c-8xf3-ggrr

Directory traversal outside of SENDFILE_ROOT in django-sendfile2

django-sendfile2pipFrameworks
CVSS
n/aMedium
ExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)No scoreNo FIRST EPSS score in this snapshot yet
Fixed in0.6.0Fixed versionGitHub
Published24 Jun 2020Updated 24 Oct 2026GitHub

What fixes it

  • 0.6.0django-sendfile2, pipGitHub
  • 0.6.0django-sendfile2, PyPIOSVpip install "django-sendfile2>=0.6.0"

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

django-sendfile2 currently relies on the backend to correctly limit file paths to SENDFILE_ROOT. This is not the case for the simple and development backends, it is also not necessarily the case for any of the other backends either (it's just an assumption that was made by the original author).

This will be fixed in 0.6.0 which is to be released the same day as this advisory is made public.

When upgrading, you will need to make sure SENDFILE_ROOT is set in your settings module if it wasn't already.

Text from GitHub Advisory Database

Affected versions 7

  • django-sendfile2, pip< 0.6.0GitHub
  • django-sendfile2, PyPIfrom first release, fixed in 0.6.0OSV
  • django-sendfile2, PyPI0.4.0OSV
  • django-sendfile2, PyPI0.4.1OSV
  • django-sendfile2, PyPI0.4.2OSV
  • django-sendfile2, PyPI0.4.3OSV
  • django-sendfile2, PyPI0.5.1OSV

References 3