{"id":"CVE-2024-39330","published":"2024-07-10T00:00:00Z","modified":"2025-11-04T16:12:26Z","title":"An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14","vendor":null,"product":null,"tier":"tail","description":{"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.)","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01008,"percentile":0.63879,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":[]},{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":[]},{"url":"https://www.djangoproject.com/weblog/2024/jul/09/security-releases/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20240808-0005/","tags":[]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":12.78},{"name":"CVSS severity","points":3.01}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-07-10T13:59:56.070563Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=5.0, <5.0.7",">=4.2, <4.2.14"],"patched":["5.0.7","4.2.14"],"from":["GHSA-9jmf-237g-qf46","PYSEC-2024-58"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-0042","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-django-cve-2014-0481","parents":[{"from":"CVE-2021-31542","to":"CVE-2024-39330","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["django/core/files/utils.py"],"commits":["https://github.com/django/django/commit/04ac1624bdc2fa737188401757cf95ced122d26d","https://github.com/django/django/commit/25d84d64122c15050a0ee739e859f22ddab5ac48","https://github.com/django/django/commit/2b00edc0151a660d1eb86da4059904a0fc4e095e","https://github.com/django/django/commit/9f4f63e9ebb7bf6cb9547ee4e2526b9b96703270"],"basis":"rarely changed file"}]}]}}