CVE-2026-50163 oras-go: Hardlink entry with relative Linkname escapes extract dir via process CWD resolution in `oras-go` tar extraction
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed HatCloud Platforms
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 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.
Upgrade path
51 packages: 2 fixed, 48 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/golang-oras-oras-go(Debian 12) | = 1.1.1-1; = 2.5.0-1; = 2.6.0-1; = 2.6.2-1 +2 more | No fix listed | No fix yet |
| debian/golang-oras-oras-go(Debian 13) | = 2.5.0-1; = 2.6.0-1; = 2.6.2-1; = 2.6.2-2 +1 more | No fix listed | No fix yet |
| redhat/advanced-cluster-security/rhacs-main-rhel8:1785413210(Red Hat advanced_cluster_security 4.9 el8) | All versions | No fix listed | No fix yet |
| redhat/advanced-cluster-security/rhacs-main-rhel8:1785420959(Red Hat advanced_cluster_security 4.10 el8) | All versions | No fix listed | No fix yet |
| redhat/gatekeeper/gatekeeper-rhel9(Red Hat gatekeeper 3) | All versions | No fix listed | No fix yet |
| redhat/multicluster-globalhub/multicluster-globalhub-grafana-rhel9(Red Hat multicluster_globalhub) | All versions | No fix listed | No fix yet |
| redhat/openshift-service-mesh/istio-rhel9-operator(Red Hat service_mesh 3) | All versions | No fix listed | No fix yet |
| redhat/openshift4/cnf-tests-rhel8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/metallb-rhel8-operator(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/metallb-rhel9-operator(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/oc-mirror-plugin-rhel8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/oc-mirror-plugin-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-ansible-operator(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-azure-cluster-api-controllers-rhel8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-console(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-console-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-helm-operator(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-helm-rhel9-operator(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-olm-catalogd-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-olm-operator-controller-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-olm-rukpak-rhel8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-olm-rukpak-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-operator-framework-tools-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-operator-lifecycle-manager(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-operator-lifecycle-manager-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-operator-registry(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-operator-registry-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-operator-sdk-rhel8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-operator-sdk-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ztp-site-generate-rhel8(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
… and 21 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| oras.land/oras-go/v2(Go) | < 2.6.2 | 2.6.2 |
| oras-project oras-go | = < 2.6.2 | No fix listed |
| oras.land/oras-go/v2(Go) | <= 2.6.1 | No fix listed |
| debian/golang-oras-oras-go(Debian:12) | All versions | No fix listed |
| debian/golang-oras-oras-go(Debian:12) | = 1.1.1-1 | No fix listed |
| debian/golang-oras-oras-go(Debian:12) | = 2.5.0-1 | No fix listed |
| debian/golang-oras-oras-go(Debian:12) | = 2.6.0-1 | No fix listed |
| debian/golang-oras-oras-go(Debian:12) | = 2.6.2-1 | No fix listed |
| debian/golang-oras-oras-go(Debian:12) | = 2.6.2-2 | No fix listed |
| debian/golang-oras-oras-go(Debian:13) | All versions | No fix listed |
| debian/golang-oras-oras-go(Debian:13) | = 2.5.0-1 | No fix listed |
| debian/golang-oras-oras-go(Debian:13) | = 2.6.0-1 | No fix listed |
| debian/golang-oras-oras-go(Debian:13) | = 2.6.2-1 | No fix listed |
| debian/golang-oras-oras-go(Debian:13) | = 2.6.2-2 | No fix listed |
| debian/golang-oras-oras-go(Debian:14) | < 2.6.2-1 | 2.6.2-1 |
| debian/golang-oras-oras-go(Debian:14) | = 2.5.0-1 | No fix listed |
| debian/golang-oras-oras-go(Debian:14) | = 2.6.0-1 | No fix listed |
| ubuntu/golang-oras-oras-go(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/golang-oras-oras-go(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/golang-oras-oras-go(Ubuntu:26.10) | All versions | No fix listed |
| redhat/rhacm2/multicluster-operators-subscription-rhel9:1794257780(Red Hat:acm:2.14::el9) | All versions | No fix listed |
| redhat/rhacm2/multicluster-operators-subscription-rhel9:1794257774(Red Hat:acm:2.15::el9) | All versions | No fix listed |
| redhat/rhacm2/multicluster-operators-subscription-rhel9:1794269534(Red Hat:acm:2.16::el9) | All versions | No fix listed |
| redhat/rhacm2/multicluster-operators-subscription-rhel9:1793678296(Red Hat:acm:2.17::el9) | All versions | No fix listed |
| redhat/advanced-cluster-security/rhacs-main-rhel8:1785413210(Red Hat:advanced_cluster_security:4.9::el8) | All versions | No fix listed |
Show 38 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/advanced-cluster-security/rhacs-main-rhel8:1785420959(Red Hat:advanced_cluster_security:4.10::el8) | All versions | No fix listed |
| redhat/gatekeeper/gatekeeper-rhel9(Red Hat:gatekeeper:3) | All versions | No fix listed |
| redhat/multicluster-globalhub/multicluster-globalhub-grafana-rhel9(Red Hat:multicluster_globalhub) | All versions | No fix listed |
| redhat/openshift-service-mesh/istio-rhel9-operator(Red Hat:service_mesh:3) | All versions | No fix listed |
| redhat/rhoai/odh-ai-gateway-operator-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-feast-module-operator-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-kserve-module-operator-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-ogx-module-operator-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/rhoai/odh-spark-operator-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/openshift4/cnf-tests-rhel8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/metallb-rhel8-operator(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/metallb-rhel9-operator(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/oc-mirror-plugin-rhel8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/oc-mirror-plugin-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-ansible-operator(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-azure-cluster-api-controllers-rhel8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-console(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-console-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-helm-operator(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-helm-rhel9-operator(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-olm-catalogd-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-olm-operator-controller-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-olm-rukpak-rhel8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-olm-rukpak-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-operator-framework-tools-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-operator-lifecycle-manager(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-operator-lifecycle-manager-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-operator-registry(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-operator-registry-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-operator-sdk-rhel8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ose-operator-sdk-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift4/ztp-site-generate-rhel8(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/openshift5/metallb-rhel9-operator(Red Hat:openshift:5) | All versions | No fix listed |
| redhat/openshift5/ose-console-rhel9(Red Hat:openshift:5) | All versions | No fix listed |
| redhat/rhosp-rhel8/osp-director-operator-bundle(Red Hat:openstack:16.2) | All versions | No fix listed |
| redhat/rhosp-rhel9/osp-director-operator-bundle(Red Hat:openstack:17.1) | All versions | No fix listed |
| redhat/rhoso-operators/openstack-operator-bundle(Red Hat:openstack:18.0) | All versions | No fix listed |
| redhat/rhoso-operators/rabbitmq-cluster-rhel9-operator(Red Hat:openstack:18.0) | All versions | No fix listed |
References
- https://github.com/oras-project/oras-go/security/advisories/GHSA-fxhp-mv3v-67qp exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/oras-project/oras-go/pull/1232 patch
- github.com patch
- https://github.com/oras-project/oras-go/commit/c463c654ab3ef34422c1764cd619806cebf20451 patch
- github.com product
- https://github.com/oras-project/oras-go/releases/tag/v2.6.2
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:48872 patch vendor-advisory
- RHSA-2026:48913 patch vendor-advisory
- Red Hat Bugzilla 2499695 issue-tracking
- www.cve.org
- github.com
- Debian Security Tracker CVE-2026-50163 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- RHSA-2026:99963 patch vendor-advisory
- RHSA-2026:99964 patch vendor-advisory
- RHSA-2026:99956 patch vendor-advisory
- RHSA-2026:95730 patch vendor-advisory