CVE-2024-39330

CVE-2024-39330 is a medium-severity vulnerability in Djangoproject Django with a CVSS 3.x base score of 4.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-22.

Key facts

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

Frequently asked questions

What is CVE-2024-39330?
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 severe is CVE-2024-39330?
CVE-2024-39330 has a CVSS 3.x base score of 4.3, rated medium severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is low, integrity none, and availability none.
Is CVE-2024-39330 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (59th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-39330?
CVE-2024-39330 affects Djangoproject Django. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2024-39330?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
Does CVE-2024-39330 have an EU (EUVD) identifier?
Yes. CVE-2024-39330 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0042.
When was CVE-2024-39330 published?
CVE-2024-39330 was published on 2024-07-10 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Djangoproject Django

All CVEs affecting Djangoproject Django →

Other CWE-22 (Path Traversal) vulnerabilities

Browse all CWE-22 (Path Traversal) vulnerabilities →