VYPR
Medium severityNVD Advisory· Published Jul 17, 2026· Updated Jul 23, 2026

CVE-2026-50162

CVE-2026-50162

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

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
oras.land/oras-go/v2Go
< 2.6.12.6.1

Affected products

323

Patches

Vulnerability mechanics

References

4

News mentions

0

No linked articles in our index yet.