cve.bz

CVE-2026-50163 oras-project oras-go: Path traversal

7.1 highEPSS 0.4%Fix available

High (7.1) in oras-project oras-go. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in oras.land/oras-go/v2 2.6.2.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 35th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-07-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-50163 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-50163?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-50163?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-50163 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
oras-project oras-go< 2.6.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-fxhp-mv3v-67qpGooras.land/oras-go/v2<2.6.22.6.2
GO-2026-5880Gooras.land/oras-go/v2<2.6.22.6.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-oras-oras-gono fix listedDEBIAN-CVE-2026-50163
Debian14golang-oras-oras-go2.6.2-1DEBIAN-CVE-2026-50163
Ubuntu24.04:LTS, 26.04:LTS, 26.10golang-oras-oras-gono fix listedUBUNTU-CVE-2026-50163
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0govulncheck-vulndb0.0.20260727T201416-160000.1.1SUSE-SU-2026:23216-1 SUSE-SU-2026:23227-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0helm4.3.0-160000.1.1SUSE-SU-2026:23984-1
SUSELinux Micro 6.1helm4.3.0-slfo.1.1_1.1SUSE-SU-2026:24282-1
SUSELinux Micro 6.2helm4.3.0-160000.1.1SUSE-SU-2026:23973-1
openSUSELeap 16.0govulncheck-vulndb0.0.20260727T201416-160000.1.1openSUSE-SU-2026:21551-1
openSUSELeap 16.0helm4.3.0-160000.1.1openSUSE-SU-2026:21983-1
openSUSELeap 16.0trivy0.74.0-160000.2.1openSUSE-SU-2026:21801-1
openSUSETumbleweedhelm4.2.4-1.1openSUSE-SU-2026:11575-1
openSUSETumbleweedoras1.3.3-2.1openSUSE-SU-2026:11297-1
openSUSETumbleweedtrivy0.74.0-2.1openSUSE-SU-2026:11676-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in oras-go. The ensureLinkPath tar extraction helper validates that a hardlink's target resolves inside the extract base directory, but returns the original unresolved target string instead of the validated path. When os.Link() is called with a relative Linkname, it resolves against the process's current working directory (CWD), not the extract directory. An attacker controlling an OCI registry can craft a tarball layer with a malicious hardlink entry whose relative Linkname escapes the extract directory, creating a hardlink to arbitrary files in the victim's CWD. Exploitation requires the victim to run `oras pull` (or code using the oras-go file store) against an attacker-controlled registry with auto-extract enabled (io.deis.oras.content.unpack annotation set to true). In typical Red Hat deployments, container registries are curated and trusted, reducing the likelihood of exploitation. The resulting hardlink shares an inode with the target file, allowing the attacker to read its contents through the extracted archive.

Red Hat's mitigation

Upgrade to oras-go v2.6.1 or later.

ProductPackageStateAdvisory
Red Hat Advanced Cluster Management for Kubernetes 2.14rhacm2/multicluster-operators-subscription-rhel9:1794257780Fixed 2026-11-13RHSA-2026:99963
Red Hat Advanced Cluster Management for Kubernetes 2.15rhacm2/multicluster-operators-subscription-rhel9:1794257774Fixed 2026-11-13RHSA-2026:99964
Red Hat Advanced Cluster Management for Kubernetes 2.16rhacm2/multicluster-operators-subscription-rhel9:1794269534Fixed 2026-11-12RHSA-2026:99956
Red Hat Advanced Cluster Management for Kubernetes 2.17rhacm2/multicluster-operators-subscription-rhel9:1793678296Fixed 2026-11-06RHSA-2026:95730
Red Hat Advanced Cluster Security 4.9advanced-cluster-security/rhacs-main-rhel8:1785413210Fixed 2026-07-30RHSA-2026:48872
Red Hat Advanced Cluster Security for Kubernetes for IBM Power, little endian 4.10advanced-cluster-security/rhacs-main-rhel8:1785420959Fixed 2026-07-30RHSA-2026:48913
Gatekeeper 3gatekeeper/gatekeeper-rhel9Fix deferred
Multicluster Global Hubmulticluster-globalhub/multicluster-globalhub-grafana-rhel9Fix deferred
OpenShift Service Mesh 3openshift-service-mesh/istio-rhel9-operatorFix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-ai-gateway-operator-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-feast-module-operator-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-kserve-module-operator-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-ogx-module-operator-rhel9Affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-spark-operator-rhel9Affected
Red Hat OpenShift Container Platform 4openshift4/cnf-tests-rhel8Fix deferred
Red Hat OpenShift Container Platform 4openshift4/metallb-rhel8-operatorFix deferred
Red Hat OpenShift Container Platform 4openshift4/metallb-rhel9-operatorFix deferred
Red Hat OpenShift Container Platform 4openshift4/oc-mirror-plugin-rhel8Fix deferred
Red Hat OpenShift Container Platform 4openshift4/oc-mirror-plugin-rhel9Fix deferred
Red Hat OpenShift Container Platform 4openshift4/ose-ansible-operatorFix deferred
23 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-50163.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON