CVE-2024-39330
MEDIUM 4.3CVSS 3.1Django Path Traversal vulnerability
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.)
- Published
- 10 Jul 2024
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- BIT-django-2024-39330GHSA-9jmf-237g-qf46PYSEC-2024-58
- Sources
- NVDJSONOSV GHSA-9jmf-237g-qf46JSONOSV PYSEC-2024-58JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 4.2, < 4.2.14 | 4.2.14 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 5.0, < 5.0.7 | 5.0.7 |
| OSV | PyPI | django | >= 5.0, < 5.0.7 | 5.0.7 |
| OSV | PyPI | django | >= 4.2, < 4.2.14 | 4.2.14 |
| OSV | PyPI | django | >= 5.0, < 5.0.7; >= 4.2, < 4.2.14 | 5.0.7, 4.2.14 |
References
- https://docs.djangoproject.com/en/dev/releases/security/ · Vendor Advisory, WEB
- https://groups.google.com/forum/#%21forum/django-announce · Permissions Required, WEB
- https://www.djangoproject.com/weblog/2024/jul/09/security-releases/ · Vendor Advisory, WEB, ARTICLE
- https://security.netapp.com/advisory/ntap-20240808-0005/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-39330 · ADVISORY
- https://github.com/django/django/commit/2b00edc0151a660d1eb86da4059904a0fc4e095e · WEB
- https://github.com/django/django/commit/9f4f63e9ebb7bf6cb9547ee4e2526b9b96703270 · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-58.yaml · WEB
- https://github.com/advisories/GHSA-9jmf-237g-qf46 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 10 Jul 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Jul 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Jul 2024)