CVE
CVE-2024-39330
CVE-2024-39330MED 4.3EPSS 64%
CNA 原文 · 原文(英文)
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.)
受影响版本
- django≥ 5.0, < 5.0.7修复版本 5.0.7
- django≥ 4.2, < 4.2.14修复版本 4.2.14
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- docs.djangoproject.com/en/dev/releases/security/ · Vendor Advisory
- www.djangoproject.com/weblog/2024/jul/09/security-releases/ · Vendor Advisory
- github.com/advisories/GHSA-9jmf-237g-qf46 · Third Party Advisory
- osv.dev/vulnerability/GHSA-9jmf-237g-qf46 · Third Party Advisory
- github.com/django/django/commit/2b00edc0151a660d1eb86da4059904a0fc4e09 · Vendor Advisory
- github.com/django/django/commit/9f4f63e9ebb7bf6cb9547ee4e2526b9b967032 · Vendor Advisory
- docs.djangoproject.com/en/dev/releases/security · Vendor Advisory
- www.djangoproject.com/weblog/2024/jul/09/security-releases · Vendor Advisory
- osv.dev/vulnerability/PYSEC-2024-58 · Third Party Advisory
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。