Back to overview

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

CVE ID
CVE-2026-50162
State
PUBLISHED
Assigner
GitHub_M
Reserved
2026-06-03 20:54 UTC
Published
2026-07-17 19:39 UTC
Last updated
2026-07-17 19:39 UTC
Primary CWE
CWE-73
CWE-73: External Control of File Name or Path
Vendor / Product
oras-project / oras-go
Sources
cve.org  ·  NVD

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)
VendorProductPlatformVersions
oras-project oras-go < 2.6.1
Weakness (CWE)
CWESourceDescription
CWE-73 cna CWE-73: External Control of File Name or Path
CVSS scores (1)
ScoreSeverityVersionSourceVector
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)
Back to overview