Vulnerability · Published Jul 17, 2026 · Assigned by GitHub_M
CVE-2026-50162oras-go: file store write outside workingDir via symlink traversal
Medium 6.9
In plain English
A medium-severity security flaw in oras-go from oras-project. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-oras-oras-go | no fix listed | DEBIAN-CVE-2026-50162 |
| Debian:13 | golang-oras-oras-go | no fix listed | DEBIAN-CVE-2026-50162 |
| Debian:14 | golang-oras-oras-go | 2.6.2-1 | DEBIAN-CVE-2026-50162 |
| Go | oras.land/oras-go/v2 | 2.6.1 | GHSA-8xwf-rjm4-xvhv |
| Go | oras.land/oras-go/v2 | 2.6.1 | GO-2026-5879 |
| Ubuntu:24.04:LTS | golang-oras-oras-go | no fix listed | UBUNTU-CVE-2026-50162 |
| Ubuntu:26.04:LTS | golang-oras-oras-go | no fix listed | UBUNTU-CVE-2026-50162 |
| Ubuntu:26.10 | golang-oras-oras-go | no fix listed | UBUNTU-CVE-2026-50162 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| oras-project | oras-go | < 2.6.1 |
Weakness: CWE-73 · 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