{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-50163","id":"CVE-2026-50163","title":"oras-go: Hardlink entry with relative Linkname escapes extract dir via process CWD resolution in `oras-go` tar extraction","description":"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 N","descriptionLong":"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":"2026-07-17T19:36:01.254Z","updated":"2026-10-28T02:30:22.311667509Z","reserved":"2026-06-03T20:54:20.432Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["oras-project oras-go"],"affectedProducts":[{"vendor":"oras-project","product":"oras-go","defaultStatus":null,"versions":[{"version":"< 2.6.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"oras.land/oras-go/v2","purl":"pkg:golang/oras.land/oras-go/v2","ranges":["<2.6.2"],"fixed":["2.6.2"],"advisory":"GHSA-fxhp-mv3v-67qp"}],"cwes":["CWE-22","CWE-59"],"aliases":["GHSA-fxhp-mv3v-67qp","GO-2026-5880"],"references":[{"url":"https://github.com/oras-project/oras-go/security/advisories/GHSA-fxhp-mv3v-67qp","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/oras-project/oras-go/pull/1232","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/oras-project/oras-go/commit/c463c654ab3ef34422c1764cd619806cebf20451","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/oras-project/oras-go/releases/tag/v2.6.2","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/50xxx/CVE-2026-50163.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50163","tags":["advisory"]},{"url":"https://github.com/oras-project/oras-go/commit/b11f777f8d405c5023c4b307cfdc5068dfc3d406","tags":["web","fix"]},{"url":"https://github.com/oras-project/oras-go","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00403,"epssPercentile":0.35285,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-50163","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-50163","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-50163","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-fxhp-mv3v-67qp","ok":true,"note":"GHSA-fxhp-mv3v-67qp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-50163","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}