CVE-2026-50162 Details
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.
A vulnerability in the Oras-Go library prior to version 2.6.1 allows for directory traversal via symlinks, causing files to be written outside the designated working directory. This occurs when 'AllowPathTraversalOnWrite' is set to false, and an attacker-controlled blob title targets a path under a symlink that points to an external directory. The issue arises because the library's lexical checks do not account for symlink resolution, allowing writes to escape the intended boundaries.
Users can update to Oras-Go version 2.6.1 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 17, 2026CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5 | [email protected] | Source CodeVendor |
| https://github.com/oras-project/oras-go/releases/tag/v2.6.1 | [email protected] | Release NotesVendor |
| https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-73 | External Control of File Name or Path | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| oras-project oras-go | >= 2.6.0, < 2.6.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 17, 2026 | New CVE Received | [email protected] |
Volerion