Feed
7.5HIGH
CVE-2024-39330Django Path Traversal vulnerability
A high-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.2% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.2%
- percentile 69%
- Fix
- Named by a source
- CVE published 10 Jul 2024
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.2% (+1) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 5.0.7 / 4.2.14 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/2b00edc0151a660d1eb86da4059904a0fc4e095e
- Commit / pull request: https://github.com/django/django/commit/9f4f63e9ebb7bf6cb9547ee4e2526b9b96703270
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 5.0, < 5.0.7Fixed in5.0.7OSV (PYSEC-2024-58)
- Affected>= 4.2, < 4.2.14Fixed in4.2.14OSV (PYSEC-2024-58)
Confirmed facts
- CVSS
- 7.5 HIGH (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-9jmf-237g-qf46)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-22
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.)
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2024-39330
- commit / pull requesthttps://github.com/django/django/commit/2b00edc0151a660d1eb86da4059904a0fc4e095e
- commit / pull requesthttps://github.com/django/django/commit/9f4f63e9ebb7bf6cb9547ee4e2526b9b96703270
- otherhttps://docs.djangoproject.com/en/dev/releases/security
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-58.yaml
- otherhttps://groups.google.com/forum/#%21forum/django-announce
- otherhttps://security.netapp.com/advisory/ntap-20240808-0005
- otherhttps://www.djangoproject.com/weblog/2024/jul/09/security-releases
- otherhttps://docs.djangoproject.com/en/dev/releases/security/
- otherhttps://www.djangoproject.com/weblog/2024/jul/09/security-releases/
- advisoryhttps://github.com/advisories/GHSA-9jmf-237g-qf46
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-9jmf-237g-qf46 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2024-58 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 30 min ago · osv 29 min ago · nvd 2 h ago · epss 29 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2024-39330, GHSA-9jmf-237g-qf46, PYSEC-2024-58