Skip to main content
← All vulnerabilities
CVE-2026-50162GO-2026-5879GHSA-8XWF-RJM4-XVHV

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.6.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • oras-project oras-go

    fixed in 2.6.1

  • oras.land/oras-go/v2Go

    fixed in 2.6.1

References 3

GitHub · oras-project/oras-go