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

20 Jul 2026, 19:17

Type Values Removed Values Added
References () https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv - () https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv -

17 Jul 2026, 20:17

Type Values Removed Values Added
New CVE

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