CVE-2024-39330

MEDIUMCVSS 4.3/10EPSS 1.01%

Last modified

CVE-2024-39330 is a medium-severity vulnerability rated 4.3/10 on the CVSS scale. 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. EPSS estimates a 1.01% chance of exploitation in the next 30 days.

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

Metrics

CVSS 3.1
4.3/10

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

EPSS Probability
1.01%

58.6th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
DjangoprojectDjango>= 4.2, < 4.2.14
DjangoprojectDjango>= 5.0, < 5.0.7

References

Timeline

Published
Last Modified
Status
Modified

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 score of 4.3/10 (MEDIUM severity). The EPSS model estimates a 1.01% probability of exploitation in the next 30 days.
How do I fix CVE-2024-39330?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-39330?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST