CVE-2026-50162
MEDIUM
6.9
CVSS 4.0
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.
Metadata
Severity & Metrics
6.9
MEDIUM CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| oras-project | oras-go | — | < 2.6.1 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-73 | cna | CWE-73: External Control of File Name or Path |
CVSS scores (1)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 6.9 | MEDIUM | 4.0 | cna | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N |
References (3)
- 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
- https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5 https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5
- https://github.com/oras-project/oras-go/releases/tag/v2.6.1 https://github.com/oras-project/oras-go/releases/tag/v2.6.1