{"id":"CVE-2026-50162","revision":"969fa2bd15504d389b6ca80fa568c2ad","records":[{"revision":"969fa2bd15504d389b6ca80fa568c2ad","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-50162","aliases":[],"title":"oras-go: file store write outside workingDir via symlink traversal","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.","state":0,"publishedAt":"2026-07-17T19:39:28.847+00:00","modifiedAt":"2026-07-20T18:18:44.172+00:00","affected":[{"ecosystem":"Vendor product","name":"oras-go","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"oras-project\",\n                    \"product\": \"oras-go\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.6.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"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","score":6.9,"severity":"MEDIUM"}],"references":["https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv","https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5","https://github.com/oras-project/oras-go/releases/tag/v2.6.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-50162","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-50162","identifiers":["CVE-2026-50162"]},"retained":false,"historicalAffected":[]}],"coverage":[]}