Live threats

All CVEs / Djangoproject

CVE-2024-39330Djangoproject Django

Medium 4.3

Priority
26
CVSS 3.1
4.3
EPSS
1.2%
probability of exploitation in 30 days · percentile 69
Auth required
Yes
Published
Jul 10, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 5.0 < 5.0.7 5.0.7 pip install "django>=5.0.7"
PyPI django ≥ 4.2 < 4.2.14 4.2.14 pip install "django>=4.2.14"
PyPI django ≥ 5.0 < 5.0.7 5.0.7 pip install "django>=5.0.7"
PyPI django ≥ 4.2 < 4.2.14 4.2.14 pip install "django>=4.2.14"

Per OSV / GitHub Advisories (GHSA-9jmf-237g-qf46, PYSEC-2024-58). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 4.2 < 4.2.14
djangoprojectdjango≥ 5.0 < 5.0.7

Official advisories

Also: SUSE (+2)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.