Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-50162— oras-go: file store write outside workingDir via symlink traversal

Quick assessment

Affected
oras-project oras-go
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

oras-project oras-go是oras-project组织的一个基于OCI标准的内容分发库软件。 oras-project oras-go 2.6.1之前版本存在输入验证错误漏洞,该漏洞源于resolveWritePath()函数使用词法filepath.Rel检查workingDir且未考虑符号链接遍历,导致当AllowPathTraversalOnWrite=false时允许攻击者通过ocispec.AnnotationTitle控制的blob标题跟随符号链接在workingDir外创建文

AI Predicted 7.5 Difficulty: Easy EPSS 0.51% · P42

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 1

VendorProduct Version RangeStatus
oras-project oras-go < 2.6.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-50162

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
oras-go: file store write outside workingDir via symlink traversal
Source: CVE Program / CVE List V5
Vulnerability Description
oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, resolveWritePath() in content/file/file.go uses a lexical filepath.Rel check for workingDir and does not account for symlink traversal, so when AllowPathTraversalOnWrite=false an attacker-controlled blob title through ocispec.AnnotationTitle such as out/pwn.txt can follow a workingDir symlink out -> /some/outside/dir and cause pushFile() to create /some/outside/dir/pwn.txt outside workingDir. This issue is fixed in version 2.6.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
文件名或路径的外部可控制
Source: CVE Program / CVE List V5
Vulnerability Title
oras-project oras-go 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
oras-project oras-go是oras-project组织的一个基于OCI标准的内容分发库软件。 oras-project oras-go 2.6.1之前版本存在输入验证错误漏洞,该漏洞源于resolveWritePath()函数使用词法filepath.Rel检查workingDir且未考虑符号链接遍历,导致当AllowPathTraversalOnWrite=false时允许攻击者通过ocispec.AnnotationTitle控制的blob标题跟随符号链接在workingDir外创建文
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
oras-project oras-go < 2.6.1 -

II. Public POCs for CVE-2026-50162

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-50162

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-50162 (1)

Vendor Advisories for CVE-2026-50162 (1)

Vendor Pages for CVE-2026-50162 (1)

Same Patch Batch · oras-project · 2026-07-17 · 4 CVEs total

CVE-2026-50151 7.5 HIGH oras-go: credential forwarding via unvalidated Location header in blob upload
CVE-2026-50163 7.1 HIGH oras-go: Hardlink entry with relative Linkname escapes extract dir via process CWD resolut
CVE-2026-48978 oras-go: Malicious registry can hijack Bearer token realm to exfiltrate credentials and re

IV. Related Vulnerabilities