golang-oras-oras-go — security advisory
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.
- Products
- golang-oras-oras-go
- Affected versions
- 1.1.1-1ubuntu1, 2.5.0-1, 2.6.0-1, 2.6.2-1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-50162
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:27 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-50162
golang-oras-oras-go
Fixed versions: Not specified
golang-oras-oras-go
Fixed versions: Not specified
golang-oras-oras-go
Fixed versions: Not specified
Complete source record
{
"id": "183a99ea4a4476f97176ca9d268ff8f4b733af51ec78d5fc6b064b9090ce953c",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-50162",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-50162",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-50162",
"products": [
{
"name": {
"value": "golang-oras-oras-go",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.1-1ubuntu1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "golang-oras-oras-go",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.6.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.6.2-1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "golang-oras-oras-go",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.5.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.6.0-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-50162",
"aliases": [
"UBUNTU-CVE-2026-50162"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-oras-oras-go",
"purl": "pkg:deb/ubuntu/golang-oras-oras-go?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.1.1-1ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-50162.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-oras-oras-go-dev",
"binary_version": "1.1.1-1ubuntu1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-oras-oras-go",
"purl": "pkg:deb/ubuntu/golang-oras-oras-go?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.6.0-1",
"2.6.2-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-50162.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-oras-oras-go-dev",
"binary_version": "2.6.2-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-oras-oras-go",
"purl": "pkg:deb/ubuntu/golang-oras-oras-go?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.5.0-1",
"2.6.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-50162.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "golang-oras-oras-go-dev",
"binary_version": "2.6.0-1"
}
]
}
}
],
"modified": "2026-10-17T12:58:33.459420663Z",
"provider": "osv",
"upstream": [
"CVE-2026-50162"
],
"references": [
"https://ubuntu.com/security/CVE-2026-50162",
"https://www.cve.org/CVERecord?id=CVE-2026-50162",
"https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv"
]
},
"related_cves": [
{
"value": "CVE-2026-50162",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 358759,
"published_at": "2026-07-17T20:17:00+00:00"
}