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.
CVSS

No CVSS.

Configurations

No configuration.

History

No history.

Information

Published : 2026-07-17 20:17

Updated : 2026-07-23 18:08


NVD link : CVE-2026-50162

Mitre link : CVE-2026-50162

CVE.ORG link : CVE-2026-50162


JSON object : View

Products Affected

No product.

CWE
CWE-73

External Control of File Name or Path