Skip to main content
← All vulnerabilities
CVE-2024-39330GHSA-9JMF-237G-QF46BIT-DJANGO-2024-39330PYSEC-2024-58

An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14.

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.0.7, 4.2.14
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • n/a n/a

    Version range not reported

  • djangoPyPI

    From 5.0 · fixed in 5.0.7

  • djangoPyPI

    From 4.2 · fixed in 4.2.14

  • djangoPyPI

    From 5.0 · fixed in 5.0.7; From 4.2 · fixed in 4.2.14

References 3

docs.djangoproject.com

groups.google.com

djangoproject.com