| Name | CVE-2026-50162 |
| 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 (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1142456 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| golang-oras-oras-go (PTS) | bookworm | 1.1.1-1 | vulnerable |
| trixie | 2.5.0-1 | vulnerable |
| forky, sid | 2.6.2-1 | fixed |
The information below is based on the following data on fixed versions.
Notes
[trixie] - golang-oras-oras-go <no-dsa> (Minor issue)
[bookworm] - golang-oras-oras-go <postponed> (Limited support, minor issue; v1.1.1 affected too, content/file.go resolveWritePath() lacks symlink resolution)
https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv
Fixed by: https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5 (v2.6.1)