CVEvulnerability
CVE-2024-39330
4.3 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2024-07-10
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 4.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
- Weaknesses
- CWE-22
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.)
Affected configurations
• djangoproject django (>= 4.2 < 4.2.14)
• djangoproject django (>= 5.0 < 5.0.7)
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://docs.djangoproject.com/en/dev/releases/security/ Vendor Advisory
- https://groups.google.com/forum/#%21forum/django-announce Permissions 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-announce Permissions Required
- https://security.netapp.com/advisory/ntap-20240808-0005/ security.netapp.com
- https://www.djangoproject.com/weblog/2024/jul/09/security-releases/ Vendor Advisory