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.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.4%top 61.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12golang-oras-oras-gono fix listedDEBIAN-CVE-2026-50162
Debian:13golang-oras-oras-gono fix listedDEBIAN-CVE-2026-50162
Debian:14golang-oras-oras-go2.6.2-1DEBIAN-CVE-2026-50162
Gooras.land/oras-go/v22.6.1GHSA-8xwf-rjm4-xvhv
Gooras.land/oras-go/v22.6.1GO-2026-5879
Ubuntu:24.04:LTSgolang-oras-oras-gono fix listedUBUNTU-CVE-2026-50162
Ubuntu:26.04:LTSgolang-oras-oras-gono fix listedUBUNTU-CVE-2026-50162
Ubuntu:26.10golang-oras-oras-gono fix listedUBUNTU-CVE-2026-50162

Affected products (as reported)

VendorProductVersions
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

References