CVE-2026-50163
HIGH 7.1CVSS 3.1`oras-go` tar extraction: Hardlink entry with relative Linkname escapes extract dir via process CWD resolution
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", "<extract_base>/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.
- Published
- 17 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-22CWE-59
- Also known as
- GHSA-fxhp-mv3v-67qpGO-2026-5880
- Sources
- NVDJSONOSV GHSA-fxhp-mv3v-67qpJSONOSV GO-2026-5880JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | oras.land/oras-go/v2 | < 2.6.2 | 2.6.2 |
References
- https://github.com/oras-project/oras-go/commit/c463c654ab3ef34422c1764cd619806cebf20451 · WEB
- https://github.com/oras-project/oras-go/pull/1232 · WEB
- https://github.com/oras-project/oras-go/releases/tag/v2.6.2 · WEB
- https://github.com/oras-project/oras-go/security/advisories/GHSA-fxhp-mv3v-67qp · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-50163 · ADVISORY
- https://github.com/oras-project/oras-go/commit/b11f777f8d405c5023c4b307cfdc5068dfc3d406 · WEB, FIX
- https://github.com/oras-project/oras-go · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 17 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 1 Jul 2026)