目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2026-85731— oras-go 符号链接导致任意文件写入漏洞

一分钟漏洞结论

影响对象
oras-project oras-go
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

oras-go 是一个用于管理 OCI 制品的 Go 库。在 2.6.2 版本之前,当内容或文件存储(content/file.Store)提取标记为 的 OCI 层时,可能会在存储工作目录之外写入文件。 具体原因如下: 路径中的 和 函数仅以字面方式(lexical)验证符号链接的目标; 函数在处理根级条目时会跳过对父目录符号链接的遍历;而 函数在打开常规文件时会跟随终端符号链接。因此,一个恶意的归档文件可以构造一条符号链接链,其字面目标位于提取根目录内部,但实际解析后的目标却是攻击者选定的绝对路径。随后,即使

CVSS 8.8 · High
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-85731 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
oras-go: Arbitrary file write outside file.Store root via symlink-chain bypass in tar extraction (pushDir)
来源: CVE Program / CVE List V5
Vulnerability Description
oras-go is a Go library for managing OCI artifacts. Prior to 2.6.2, content/file.Store extraction of OCI layers marked with io.deis.oras.content.unpack=true can write outside the store working directory. The pushDir path through extractTarDirectory and ensureLinkPath validates symlink targets lexically, resolveRelToBase skips its parent-symlink walk for root-level entries, and writeFile follows a terminal symlink when opening a regular file. A malicious archive can therefore create a symlink chain whose lexical target remains inside the extraction root but whose resolved target is an attacker-selected absolute path, then overwrite that target with a same-named regular-file entry even when AllowPathTraversalOnWrite is false. Pulling an attacker-controlled artifact can create or overwrite any file writable by the process and may lead to code execution. This issue is fixed in version 2.6.2.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
oras-project oras-go < 2.6.2 -

二、漏洞 CVE-2026-85731 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-85731 的情报信息

登录查看更多情报信息。

CVE-2026-85731 补丁与修复 (2)

CVE-2026-85731 其他参考 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-85731

暂无评论


发表评论