NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-39330: Django Path Traversal vulnerability

highCVSS 4.0 8.7 · 3.1 7.5GHSA-9jmf-237g-qf46

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 override generatefilename() without replicating the file-path validations from the parent class, potentially allow directory traversal via certain inputs during a save() call. (Built-in Storage sub-classes are unaffected.)

Published Jul 10, 2024 · Updated Nov 4, 2025

Affected packages

Django

Ecosystem
PyPI
Affected
>= 5.0, < 5.0.7
Fixed in
5.0.7
Check
pip show Django

Django

Ecosystem
PyPI
Affected
>= 4.2, < 4.2.14
Fixed in
4.2.14
Check
pip show Django

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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 override generate_filename() without replicating the file-path validations from the parent class, potentially allow directory traversal via certain inputs during a save() call. (Built-in Storage sub-classes are unaffected.)

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries