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

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-06-24T17:15:26.000Z
- Modified: 2024-12-02T05:47:45.852Z
- Weaknesses: CWE-22

## 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.

(As written by GitHub Advisory Database.)

## Affected

- django-sendfile2 (PyPI): before 0.6.0

## References

- <https://github.com/moggers87/django-sendfile2/security/advisories/GHSA-6r3c-8xf3-ggrr> (web)
- <https://github.com/moggers87/django-sendfile2/commit/f870c52398a55b9b5189932dd8caa24efb4bc1e1> (web)
- <https://github.com/moggers87/django-sendfile2> (package)

## Sources

- GitHub Advisory Database: [GHSA-6r3c-8xf3-ggrr](https://github.com/advisories/GHSA-6r3c-8xf3-ggrr), CC-BY-4.0, modified 2024-12-02

---

Page: https://cve.day/GHSA-6r3c-8xf3-ggrr · Whole record: https://cve.day/GHSA-6r3c-8xf3-ggrr.json · Rebuilt by cve.day 2026-11-25T22:56:34.319Z
