CVE-2025-55214 (CNNVD-202508-2032)

MEDIUM
中文标题:
Copier 路径遍历漏洞
英文标题:
Copier safe template has filesystem write access outside destination path
CVSS分数: 6.9
发布时间: 2025-08-18 16:36:46
漏洞类型: 路径遍历
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

Copier是Copier开源的一个用于渲染项目模板的库。 Copier 7.1.0至9.9.1之前版本存在路径遍历漏洞,该漏洞源于模板可写入目标路径外文件,可能导致任意文件覆盖。

英文描述:

Copier library and CLI app for rendering project templates. From 7.1.0 to before 9.9.1, Copier suggests that it's safe to generate a project from a safe template, i.e. one that doesn't use unsafe features like custom Jinja extensions which would require passing the --UNSAFE,--trust flag. As it turns out, a safe template can currently write files outside the destination path where a project shall be generated or updated. This is possible when rendering a generated directory structure whose rendered path is either a relative parent path or an absolute path. Constructing such paths is possible using Copier's builtin pathjoin Jinja filter and its builtin _copier_conf.sep variable, which is the platform-native path separator. This way, a malicious template author can create a template that overwrites arbitrary files (according to the user's write permissions), e.g., to cause havoc. This vulnerability is fixed in 9.9.1.

CWE类型:
CWE-22
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
copier-org copier >= 7.1.0, < 9.9.1 - - cpe:2.3:a:copier-org:copier:>=_7.1.0,_<_9.9.1:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/copier-org/copier/security/advisories/GHSA-p7q8-grrj-3m8w x_refsource_CONFIRM
cve.org
访问
https://github.com/copier-org/copier/commit/fdbc0167cc22780b497e4db176feaf6f024757d6 x_refsource_MISC
cve.org
访问
CVSS评分详情
4.0 (cna)
MEDIUM
6.9
CVSS向量: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
机密性
NONE
完整性
HIGH
可用性
HIGH
后续系统影响 (Subsequent):
机密性
NONE
完整性
NONE
可用性
NONE
时间信息
发布时间:
2025-08-18 16:36:46
修改时间:
2025-08-18 19:47:31
创建时间:
2025-11-11 15:40:43
更新时间:
2025-11-11 16:00:05
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-55214 2025-11-11 15:23:29 2025-11-11 07:40:43
NVD nvd_CVE-2025-55214 2025-11-11 15:00:59 2025-11-11 07:48:30
CNNVD cnnvd_CNNVD-202508-2032 2025-11-11 15:12:54 2025-11-11 08:00:05
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 16:00:05
vulnerability_type: 未提取 → 路径遍历; cnnvd_id: 未提取 → CNNVD-202508-2032; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 路径遍历
  • cnnvd_id: 未提取 -> CNNVD-202508-2032
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:30
data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • data_sources: ['cve'] -> ['cve', 'nvd']