golang-oras-oras-go — security advisory
oras-go is a Go library for managing OCI artifacts. Prior to 2.6.2, ensureLinkPath in content/file/utils.go:262-275 validates a hardlink target relative to the extract base but returns the unresolved target, causing os.Link("victim.secret", "/payload.tar.gz/evil_cwd_link") to resolve header.Linkname against the process current working directory for a Typeflag=TypeLink entry such as Name=payload.tar.gz/evil_cwd_link and Linkname="victim.secret" with io.deis.oras.content.unpack: "true", which can expose or tamper with files such as .env, .git/config, .aws/credentials, and ~/.ssh/config. This issue is fixed in version 2.6.2.
- Products
- golang-oras-oras-go
- Affected versions
- 1.1.1-1, 2.5.0-1, 2.6.0-1, 2.6.2-1, 2.6.2-2
- Fixed versions
- 2.6.2-1
- CVEs
- CVE-2026-50163
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:52 UTC · Revision 2
Source evidence
oras-go is a Go library for managing OCI artifacts. Prior to 2.6.2, ensureLinkPath in content/file/utils.go:262-275 validates a hardlink target relative to the extract base but returns the unresolved target, causing os.Link("victim.secret", "/payload.tar.gz/evil_cwd_link") to resolve header.Linkname against the process current working directory for a Typeflag=TypeLink entry such as Name=payload.tar.gz/evil_cwd_link and Linkname="victim.secret" with io.deis.oras.content.unpack: "true", which can expose or tamper with files such as .env, .git/config, .aws/credentials, and ~/.ssh/config. This issue is fixed in version 2.6.2.
osv:DEBIAN-CVE-2026-50163
golang-oras-oras-go
Fixed versions: Not specified
golang-oras-oras-go
Fixed versions: Not specified
golang-oras-oras-go
Fixed versions: 2.6.2-1
Complete source record
{
"id": "34b21721104fcab55d603a21963b24109145f1d0dcb05ccc03d3bdf77c125d95",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-50163",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2026-50163",
"summary": "oras-go is a Go library for managing OCI artifacts. Prior to 2.6.2, ensureLinkPath in content/file/utils.go:262-275 validates a hardlink target relative to the extract base but returns the unresolved target, causing os.Link(\"victim.secret\", \"/payload.tar.gz/evil_cwd_link\") to resolve header.Linkname against the process current working directory for a Typeflag=TypeLink entry such as Name=payload.tar.gz/evil_cwd_link and Linkname=\"victim.secret\" with io.deis.oras.content.unpack: \"true\", which can expose or tamper with files such as .env, .git/config, .aws/credentials, and ~/.ssh/config. This issue is fixed in version 2.6.2.",
"evidence": "osv:DEBIAN-CVE-2026-50163",
"products": [
{
"name": {
"value": "golang-oras-oras-go",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.5.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.6.0-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.6.2-1",
"evidence": "/affected/0/versions"
},
{
"value": "2.6.2-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "golang-oras-oras-go",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.5.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.6.0-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.6.2-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.6.2-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "golang-oras-oras-go",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.6.2-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": [
{
"value": "2.5.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "2.6.0-1",
"evidence": "/affected/2/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2026-50163",
"aliases": [
"DEBIAN-CVE-2026-50163"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-oras-oras-go",
"purl": "pkg:deb/debian/golang-oras-oras-go?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.1.1-1",
"2.5.0-1",
"2.6.0-1",
"2.6.2-1",
"2.6.2-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-50163.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "golang-oras-oras-go",
"purl": "pkg:deb/debian/golang-oras-oras-go?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"2.5.0-1",
"2.6.0-1",
"2.6.2-1",
"2.6.2-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-50163.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.6.2-1"
}
]
}
],
"package": {
"name": "golang-oras-oras-go",
"purl": "pkg:deb/debian/golang-oras-oras-go?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"2.5.0-1",
"2.6.0-1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-50163.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-25T09:47:38.018228110Z",
"provider": "osv",
"upstream": [
"CVE-2026-50163"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2026-50163"
]
},
"related_cves": [
{
"value": "CVE-2026-50163",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 445140,
"published_at": "2026-07-17T20:17:23.943+00:00"
}