{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-39330","id":"CVE-2024-39330","title":"Django Path Traversal vulnerability","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.)","descriptionLong":"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":"2024-07-10T00:00:00.000Z","updated":"2026-11-17T02:45:07.897421513Z","reserved":"2024-06-23T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"high","source":"GitHub"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=5.0 <5.0.7",">=4.2 <4.2.14"],"fixed":["5.0.7","4.2.14"],"advisory":"GHSA-9jmf-237g-qf46"}],"cwes":["CWE-22"],"aliases":["BIT-django-2024-39330","GHSA-9jmf-237g-qf46","PYSEC-2024-58"],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["x_transferred","Vendor Advisory","web"]},{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["x_transferred","Permissions Required","web"]},{"url":"https://www.djangoproject.com/weblog/2024/jul/09/security-releases/","tags":["x_transferred","Vendor Advisory","article"]},{"url":"https://security.netapp.com/advisory/ntap-20240808-0005/","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/39xxx/CVE-2024-39330.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39330","tags":["advisory"]},{"url":"https://github.com/django/django/commit/2b00edc0151a660d1eb86da4059904a0fc4e095e","tags":["web"]},{"url":"https://github.com/django/django/commit/9f4f63e9ebb7bf6cb9547ee4e2526b9b96703270","tags":["web"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-58.yaml","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20240808-0005","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2024/jul/09/security-releases","tags":["web"]},{"url":"https://github.com/advisories/GHSA-9jmf-237g-qf46","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.01008,"epssPercentile":0.63768,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-39330","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39330","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-39330","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-9jmf-237g-qf46","ok":true,"note":"GHSA-9jmf-237g-qf46"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-39330","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}