# CVE-2024-39330: Django Path Traversal vulnerability

- Severity: Medium 4.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 64% of CVEs (2026-12-01)
- Published: 2024-07-10T00:00:00.000Z
- Modified: 2026-09-10T03:50:16.421Z
- Also known as: GHSA-9jmf-237g-qf46, BIT-DJANGO-2024-39330, PYSEC-2024-58
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.)

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): from 5.0 before 5.0.7; from 4.2 before 4.2.14
- djangoproject django: from 4.2 before 4.2.14; from 5.0 before 5.0.7
- django (Bitnami): from 4.2.0 before 4.2.14; from 5.0.0 before 5.0.7

## Every score

- CISA-ADP: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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: rating Medium

## References

- <https://docs.djangoproject.com/en/dev/releases/security/> (advisory, vendor-advisory, web)
- <https://groups.google.com/forum/#%21forum/django-announce> (permissions-required, web)
- <https://www.djangoproject.com/weblog/2024/jul/09/security-releases/> (advisory, article, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240808-0005/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39330> (advisory, web)
- <https://github.com/django/django/commit/2b00edc0151a660d1eb86da4059904a0fc4e095e> (web)
- <https://github.com/django/django/commit/9f4f63e9ebb7bf6cb9547ee4e2526b9b96703270> (web)
- <https://docs.djangoproject.com/en/dev/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-58.yaml> (web)
- <https://security.netapp.com/advisory/ntap-20240808-0005> (web)
- <https://www.djangoproject.com/weblog/2024/jul/09/security-releases> (web)
- <https://github.com/advisories/GHSA-9jmf-237g-qf46> (advisory)

## Sources

- CVE List: [CVE-2024-39330](https://www.cve.org/CVERecord?id=CVE-2024-39330), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-9jmf-237g-qf46](https://github.com/advisories/GHSA-9jmf-237g-qf46), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-39330](https://nvd.nist.gov/vuln/detail/CVE-2024-39330), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-58](https://osv.dev/vulnerability/PYSEC-2024-58), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2024-39330](https://osv.dev/vulnerability/BIT-DJANGO-2024-39330), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-39330 · Whole record: https://cve.day/CVE-2024-39330.json · Rebuilt by cve.day 2026-11-25T22:58:42.728Z
