Django Path Traversal vulnerability
High severity
GitHub Reviewed
Published
Jul 10, 2024
to the GitHub Advisory Database
•
Updated Aug 9, 2024
Package
Affected versions
>= 5.0, < 5.0.7
>= 4.2, < 4.2.14
Patched versions
5.0.7
4.2.14
Description
Published by the National Vulnerability Database
Jul 10, 2024
Published to the GitHub Advisory Database
Jul 10, 2024
Reviewed
Jul 10, 2024
Last updated
Aug 9, 2024
An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14. Derived classes of the
django.core.files.storage.Storage
base class, when they overridegenerate_filename()
without replicating the file-path validations from the parent class, potentially allow directory traversal via certain inputs during asave()
call. (Built-in Storage sub-classes are unaffected.)References