CVE
CVE-2025-59682
CVE-2025-59682MED 6.5EPSS 63%
CNA 原文 · 原文(英文)
An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13, and 5.2 before 5.2.7. The django.utils.archive.extract() function, used by the "startapp --template" and "startproject --template" commands, allows partial directory traversal via an archive with file paths sharing a common prefix with the target directory.
受影响版本
- django≥ 5.2, < 5.2.7修复版本 5.2.7
- django≥ 5.1, < 5.1.13修复版本 5.1.13
- django≥ 4.2, < 4.2.25修复版本 4.2.25
发行版软件包(Debian、Ubuntu、Red Hat 等)会回移补丁而不改上游版本号,请同时查看所用发行版的安全公告。
公告与补丁
- docs.djangoproject.com/en/dev/releases/security/ · Vendor Advisory
- www.djangoproject.com/weblog/2025/oct/01/security-releases/ · Release Notes, Vendor Advisory
- github.com/advisories/GHSA-q95w-c7qg-hrff · Third Party Advisory
- osv.dev/vulnerability/GHSA-q95w-c7qg-hrff · Third Party Advisory
- github.com/django/django/commit/43d84aef04a9e71164c21a74885996981857e6 · Vendor Advisory
- github.com/django/django/commit/924a0c092e65fa2d0953fd1855d2dc8786d94d · Vendor Advisory
- docs.djangoproject.com/en/dev/releases/security · Vendor Advisory
- www.djangoproject.com/weblog/2025/oct/01/security-releases · Vendor Advisory
- osv.dev/vulnerability/PYSEC-2026-1296 · Third Party Advisory
数据来源:NVD(公有领域)、CISA KEV(CC0)、FIRST EPSS、OSV.dev / GitHub Advisory Database(CC-BY 4.0) · 本库只列受影响版本与修复版本,不托管、不链接任何利用代码。