ADVISORIES

Vulnerability

CVE-2026-50162

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.

643 advisories report this vulnerability, across 8 ecosystems.

Advisories in Go

  • GHSA-8xwf-rjm4-xvhv

    oras-go has file store write outside workingDir via symlink traversal

    Moderate CVE-2026-50162 Go Updated 10 September 2026
  • GO-2026-5879

    Oras-go: File store write outside workingDir via symlink traversal in oras.land/oras-go

    CVE-2026-50162 Go Updated 24 July 2026

References