CVE-2026-50162
oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv
- github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5
- github.com/advisories/GHSA-8xwf-rjm4-xvhv
- github.com/oras-project/oras-go/releases/tag/v2.6.1
- nvd.nist.gov/vuln/detail/CVE-2026-50162
- cve.org/CVERecord?id=CVE-2026-50162
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.