{"id":"CVE-2024-39330","details":"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.)","aliases":["BIT-django-2024-39330","GHSA-9jmf-237g-qf46","PYSEC-2024-58"],"modified":"2026-05-18T05:57:52.237734421Z","published":"2024-07-10T00:00:00Z","related":["CGA-2qf2-j356-mx43","SUSE-SU-2024:2545-1","SUSE-SU-2024:2577-1","openSUSE-SU-2024:0251-1","openSUSE-SU-2024:14203-1","openSUSE-SU-2024:14208-1","openSUSE-SU-2026:10005-1","openSUSE-SU-2026:10125-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39330.json","unresolved_ranges":[{"extracted_events":[{"introduced":"5.0"},{"fixed":"5.0.7"},{"introduced":"4.2"},{"fixed":"4.2.14"}],"source":"DESCRIPTION"}],"cna_assigner":"mitre"},"references":[{"type":"WEB","url":"https://docs.djangoproject.com/en/dev/releases/security/"},{"type":"WEB","url":"https://groups.google.com/forum/#%21forum/django-announce"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39330.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39330"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240808-0005/"},{"type":"ARTICLE","url":"https://www.djangoproject.com/weblog/2024/jul/09/security-releases/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/django/django","events":[{"introduced":"97aa3b7f08f51669e118f3af5ca91026e39664c3"},{"fixed":"98cf264c9cb0561e4ec305a621e9d58116e44aef"},{"introduced":"52821001bb62b764d73e63812133f199b8fef9eb"},{"fixed":"deec9b933ee8496274e4c53217a38f31cb59a27f"}],"database_specific":{"extracted_events":[{"introduced":"4.2"},{"fixed":"4.2.14"},{"introduced":"5.0"},{"fixed":"5.0.7"}],"source":"CPE_FIELD","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"}}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-39330.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"}]}