CVE-2024-39330
Last modified
CVE-2024-39330 is a medium-severity vulnerability rated 4.3/10 on the CVSS scale. 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. EPSS estimates a 1.01% chance of exploitation in the next 30 days.
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.)
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Djangoproject | Django | >= 4.2, < 4.2.14 |
| Djangoproject | Django | >= 5.0, < 5.0.7 |
References
- https://docs.djangoproject.com/en/dev/releases/security/Vendor Advisory
- https://groups.google.com/forum/#%21forum/django-announcePermissions Required
- https://docs.djangoproject.com/en/dev/releases/security/Vendor Advisory
- https://groups.google.com/forum/#%21forum/django-announcePermissions Required
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-39330?
How severe is CVE-2024-39330?
How do I fix CVE-2024-39330?
Are you affected by CVE-2024-39330?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
