GitHub Advisoryadvisory · PyPI

GHSA-6r3c-8xf3-ggrr Directory traversal outside of SENDFILE_ROOT in django-sendfile2

MEDIUM Published 2020-06-24 Modified 2021-09-22 Official page ↗
Ecosystem
PyPI
Packages
django-sendfile2
Severity
Moderate
Weaknesses
CWE-22
Reviewed
2020-06-18

Affected packages

• PyPI django-sendfile2: < 0.6.0 → fixed in 0.6.0

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.

Related

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References