4.3medium
Django Path Traversal vulnerability
- Severity
- 4.3medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.01% (higher than 64% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-9jmf-237g-qf46BIT-DJANGO-2024-39330PYSEC-2024-58
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
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| django (PyPI) | from 5.0 before 5.0.7, from 4.2 before 4.2.14 | GitHub Advisory Database, PyPA Advisory Database |
| djangoproject django | from 4.2 before 4.2.14, from 5.0 before 5.0.7 | NVD |
| django (Bitnami) | from 4.2.0 before 4.2.14, from 5.0.0 before 5.0.7 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.)
GitHub Advisory Database
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.)
NVD (es)
Se descubrió un problema en Django 5.0 anterior a 5.0.7 y 4.2 anterior a 4.2.14. Las clases derivadas de la clase base django.core.files.storage.Storage, cuando anulan generate_filename() sin replicar las validaciones de ruta de archivo de la clase principal, potencialmente permiten directory traversal a través de ciertas entradas durante una llamada save(). (Las subclases de almacenamiento integrado no se ven afectadas).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-39330 changed 2025-11-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9jmf-237g-qf46 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-39330 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2024-58 changed 2026-06-10 | CC-BY-4.0 |
| Bitnami Vulnerability Database | BIT-DJANGO-2024-39330 changed 2026-09-08 | Apache-2.0 |