CVE-2026-50162

Medium

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.

SeverityMedium
CVSS6.9
Exploit probability—
ProductOras.land/oras-go/v2
PublishedJul 17, 2026
First seenJul 17, 2026
Weakness typeCWE-73CWE-73

How to fix

Update
  • oras.land/oras-go/v22.6.1 or later

Affected products

ProductAffected versionsFixed in
oras.land/oras-go/v2Gov < 2.6.12.6.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.