Vulnerability

CVE-2026-50162

mediumCVSS 4.0 6.9Published 17 Jul 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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 products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2e…
  • github.com /oras-project/oras-go/releases/tag/v2.6.1
  • github.com /oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xv…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning