VULNERABILITY INTELLIGENCE
CVE-2024-39330
CVSS score4.3 MEDIUM
EPSS probability1.01%
CISA KEVNot currently listed
Published2024-07-10
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Description
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.)
Weakness classification
- 134c704f-9b21-4f2e-91b3-4a467353bcc0: CWE-22
Primary references
- cve@mitre.org — Vendor Advisory
- cve@mitre.org — Permissions Required
- cve@mitre.org — Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Permissions Required
- af854a3a-2127-422b-91ae-364da2661108
- af854a3a-2127-422b-91ae-364da2661108 — Vendor Advisory