{"id":"CVE-2024-39330","aliases":["CVE-2024-39330","GHSA-9jmf-237g-qf46","BIT-DJANGO-2024-39330","PYSEC-2024-58"],"related":[],"kind":"vulnerability","state":"published","title":"Django Path Traversal vulnerability","summary":"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.)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.)","source":"cvelist"},{"lang":"en","text":"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.)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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).","source":"nvd"}],"published":"2024-07-10T00:00:00.000Z","modified":"2026-09-10T03:50:16.421Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.7"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.14"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2","fixed":"4.2.14"},{"status":"affected","introduced":"5.0","fixed":"5.0.7"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.7"},{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.14"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.14"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.7"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["permissions-required","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2024/jul/09/security-releases/","tags":["advisory","article","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20240808-0005/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39330","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/2b00edc0151a660d1eb86da4059904a0fc4e095e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/9f4f63e9ebb7bf6cb9547ee4e2526b9b96703270","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-58.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20240808-0005","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2024/jul/09/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-9jmf-237g-qf46","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-07-10T13:59:56.070Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39330","url":"https://www.cve.org/CVERecord?id=CVE-2024-39330","licence":"CVE Terms of Use","modified":"2025-11-04T16:12:26.941Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9jmf-237g-qf46","url":"https://github.com/advisories/GHSA-9jmf-237g-qf46","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.421Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39330","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39330","licence":"Public domain","modified":"2026-06-17T07:41:43.820Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-58","url":"https://osv.dev/vulnerability/PYSEC-2024-58","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:05.255Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2024-39330","url":"https://osv.dev/vulnerability/BIT-DJANGO-2024-39330","licence":"Apache-2.0","modified":"2026-09-08T08:46:32.840Z"}],"updatedAt":"2026-11-25T22:58:42.728Z","epss":{"score":0.01008,"percentile":0.64016,"date":"2026-12-01T12:00:22.000Z"}}