CVE-2024-39330
Django Path Traversal vulnerability
7.5
HIGH
CVSS 3.1
EPSS 0.19%
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.)
How to fix CVE-2024-39330
To remediate CVE-2024-39330, upgrade the affected package to a fixed version below.
- —upgrade to 4.2.14 or later
- —upgrade to 2:2.2.28-1~deb11u11 or later
- —upgrade to 5.0.7 or later
- —upgrade to 5.0.7 or later
Is CVE-2024-39330 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- >= 4.2.0, < 4.2.14, >= 5.0.0, < 5.0.7
- from 0, < 2:2.2.28-1~deb11u11
- >= 5.0, < 5.0.7
- >= 5.0, < 5.0.7, >= 4.2, < 4.2.14
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | 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 | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |