{"id":"CVE-2026-50163","published":"2026-07-17T19:36:01Z","modified":"2026-07-20T15:01:16Z","title":"oras-go: Hardlink entry with relative Linkname escapes extract dir via process CWD resolution in `oras-go` tar…","vendor":"oras-project","product":"oras-go","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00403,"percentile":0.35421,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/oras-project/oras-go/security/advisories/GHSA-fxhp-mv3v-67qp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oras-project/oras-go/pull/1232","tags":["x_refsource_MISC"]},{"url":"https://github.com/oras-project/oras-go/commit/c463c654ab3ef34422c1764cd619806cebf20451","tags":["x_refsource_MISC"]},{"url":"https://github.com/oras-project/oras-go/releases/tag/v2.6.2","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":7.08},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"oras-project","affectedVersions":[{"vendor":"oras-project","product":"oras-go","versions":["< 2.6.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-20T15:00:48.168210Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"oras.land/oras-go/v2","vulnerableRanges":["<2.6.2"],"patched":["2.6.2"],"from":["GHSA-fxhp-mv3v-67qp","GO-2026-5880"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-45297","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-oras-project-oras-go-cve-2026-50163","children":[{"from":"CVE-2026-50163","to":"CVE-2026-85731","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["content/file/utils.go"],"commits":["https://github.com/oras-project/oras-go/commit/c463c654ab3ef34422c1764cd619806cebf20451","https://github.com/oras-project/oras-go/commit/b11f777f8d405c5023c4b307cfdc5068dfc3d406","https://github.com/oras-project/oras-go/commit/adab2f25ea95ef4e6e41f50db9266a6701399422"],"basis":"shared function","functions":["extractTarDirectory"]}]}],"packageHistory":[{"cve":"CVE-2026-48978","published":"2026-07-17","fixed":"2.6.1","kev":false,"link":{"from":"CVE-2026-48978","to":"CVE-2026-50163","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:oras.land/oras-go/v2","fromFixed":"2.6.1","toFixed":"2.6.2","daysApart":0}]}},{"cve":"CVE-2026-50151","published":"2026-07-17","fixed":"2.6.1","kev":false},{"cve":"CVE-2026-50162","published":"2026-07-17","fixed":"2.6.1","kev":false},{"cve":"CVE-2026-50163","published":"2026-07-17","fixed":"2.6.2","kev":false},{"cve":"CVE-2026-85731","published":"2026-09-16","fixed":"2.6.2","kev":false},{"cve":"CVE-2026-85732","published":"2026-09-16","fixed":"2.6.2","kev":false}],"package":"Go:oras.land/oras-go/v2"}}