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.)
CVSS Details
- CVSS 3.1 Base Score: 4.3
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | alpine-linux-upgrade-py3-django | Oct 10, 2024 | Jul 10, 2024 | |
| Debian | debian-upgrade-python-django | May 15, 2025 | Jul 10, 2024 | |
| Freebsd | freebsd-upgrade-package-py39-django42freebsd-upgrade-package-py310-django42freebsd-upgrade-package-py311-django42freebsd-upgrade-package-py310-django50freebsd-upgrade-package-py311-django50 | Jul 10, 2024 | Jul 10, 2024 | |
| Gentoo Linux | gentoo-linux-upgrade-dev-python-django | Sep 18, 2025 | Sep 17, 2025 | |
| Suse | — | suse-upgrade-python3-djangosuse-upgrade-python311-django | Jul 18, 2024 | Jul 10, 2024 |
| Ubuntu | ubuntu-pro-upgrade-python-djangoubuntu-pro-upgrade-python3-djangoubuntu-upgrade-python3-django | Jul 10, 2024 | Jul 9, 2024 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub