CVE-2024-39330: django · n/a
Affects djangoSource CVE Database V5
Not known to be exploited · CVSS 4.3 Medium : upgrade to 5.0.7 or 4.2.14 when convenient.
Data as of 26 Oct 2026, 07:57 UTC
- EPSS
- 1.0% chance of exploitation in 30 days – higher than 62% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.0.7, 4.2.14
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 10 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade django to 5.0.7 or 4.2.14.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIdjangopkg:pypi/djangoOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should audit all Django applications to identify any custom subclasses of django.core.files.storage.Storage that override generate_filename(). Developers must ensure that these overrides replicate the parent class's file-path validation logic to prevent directory traversal. Upgrading Django to versions 5.0.7 or 4.2.14 and later is strongly recommended, as these versions include fixes for this vulnerability. Additionally, implement strict input validation and sanitization for any user-supplied file paths or names. Employ robust authentication and authorization controls to limit access to file upload and save functionalities. Regular code reviews and security testing focusing on file handling logic can help detect similar issues. Monitoring logs for unusual file access patterns may also aid in early detection of exploitation attempts.
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.)