Vulnerability 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.)
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Djangoproject | Django | >= 4.2, < 4.2.14 |
Related Weaknesses (CWE)
References
- https://docs.djangoproject.com/en/dev/releases/security/Vendor Advisory
- https://groups.google.com/forum/#%21forum/django-announcePermissions Required
- https://www.djangoproject.com/weblog/2024/jul/09/security-releases/Vendor Advisory
- https://docs.djangoproject.com/en/dev/releases/security/Vendor Advisory
- https://groups.google.com/forum/#%21forum/django-announcePermissions Required
- https://security.netapp.com/advisory/ntap-20240808-0005/
- https://www.djangoproject.com/weblog/2024/jul/09/security-releases/Vendor Advisory
FAQ
What is CVE-2024-39330?
CVE-2024-39330 is a vulnerability with a CVSS score of 4.3 (MEDIUM). 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 replicatin...
How severe is CVE-2024-39330?
CVE-2024-39330 has been rated MEDIUM with a CVSS base score of 4.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-39330?
Check the references section above for vendor advisories and patch information. Affected products include: Djangoproject Django.