CVE-2026-50162
MEDIUMoras-go: file store write outside workingDir via symlink traversal
Title source: cnaDescription
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.
References (3)
Core 3
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv
X_Refsource_Misc x_refsource_misc
https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5
X_Refsource_Misc x_refsource_misc
https://github.com/oras-project/oras-go/releases/tag/v2.6.1
Scores
CVSS v4
6.9
EPSS
0.0037
EPSS Percentile
29.2%
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
yes
Technical Impact
partial
Details
CWE
CWE-73
Status
published
Products (1)
oras-project/oras-go
< 2.6.1
Published
Jul 17, 2026
Tracked Since
Jul 18, 2026