{"id":"CVE-2026-50162","published":"2026-07-17T19:39:28Z","modified":"2026-07-20T18:18:44Z","title":"oras-go: file store write outside workingDir via symlink traversal","vendor":"oras-project","product":"oras-go","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00437,"percentile":0.38841,"provenance":"source"},"cwes":[{"id":"CWE-73","name":"External Control of File Name or Path"}],"references":[{"url":"https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5","tags":["x_refsource_MISC"]},{"url":"https://github.com/oras-project/oras-go/releases/tag/v2.6.1","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":7.77},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"oras-project","affectedVersions":[{"vendor":"oras-project","product":"oras-go","versions":["< 2.6.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-20T18:18:39.453595Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"oras.land/oras-go/v2","vulnerableRanges":["<2.6.1"],"patched":["2.6.1"],"from":["GHSA-8xwf-rjm4-xvhv","GO-2026-5879"],"provenance":"source"}],"summary":{"text":"The oras-go Go library for managing OCI artifacts, prior to 2.6.1, has a flaw in resolveWritePath() in content/file/file.go: it checks the working directory boundary lexically and ignores symlinks, so the file store can write outside workingDir when AllowPathTraversalOnWrite is false. An attacker who supplies a crafted blob title (via ocispec.AnnotationTitle) that routes through a symlink inside workingDir pointing to an external directory can cause a file to be created outside workingDir, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:31Z"},"euvd":{"id":"EUVD-2026-45262","exploited":false,"provenance":"source"}}