Advisory

GHSA-6r3c-8xf3-ggrr

Also known as: None

Summary

Directory traversal outside of SENDFILE_ROOT in django-sendfile2

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-06-24 17:15 UTC
Modified
2024-12-02 05:47 UTC

Affected packages and fixes

django-sendfile2

PyPI · All systems

Affected

  • introduced 0, fixed 0.6.0 (ecosystem)

Fixed versions

0.6.0

Fix

  • Fixed version 0.6.0
    pip install --upgrade django-sendfile2==0.6.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences