cve.bz

CVE-2026-50162 oras-project oras-go: External Control of File Name or Path

6.9 mediumEPSS 0.4%Fix available

Medium (6.9) 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.1.

On this page
oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, resolveWritePath() in content/file/file.go uses a lexical filepath.Rel check for workingDir and does not account for symlink traversal, so when AllowPathTraversalOnWrite=false an attacker-controlled blob title through ocispec.AnnotationTitle such as out/pwn.txt can follow a workingDir symlink out -> /some/outside/dir and cause pushFile() to create /some/outside/dir/pwn.txt outside workingDir. This issue is fixed in version 2.6.1.

Severity

CVSS 4.0

6.9 medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th 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: yes · 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.
CWE
CWE-73 External Control of File Name or Path
OWASP Top 10
A06:2025 Insecure Design
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-50162 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-50162?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-50162?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-50162 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.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8xwf-rjm4-xvhvGooras.land/oras-go/v2<2.6.12.6.1
GO-2026-5879Gooras.land/oras-go/v2<2.6.12.6.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-oras-oras-gono fix listedDEBIAN-CVE-2026-50162
Debian14golang-oras-oras-go2.6.2-1DEBIAN-CVE-2026-50162
Ubuntu24.04:LTS, 26.04:LTS, 26.10golang-oras-oras-gono fix listedUBUNTU-CVE-2026-50162
Red Hathummingbird:1helm30:3.21.3-0.1.2.hum1RHSA-2026:42241
Red Hathummingbird:1helm40:4.2.3-0.1.2.hum1RHSA-2026:42230
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
openSUSELeap 16.0govulncheck-vulndb0.0.20260727T201416-160000.1.1openSUSE-SU-2026:21551-1

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

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Migration Toolkit for Virtualization 2.10migration-toolkit-virtualization/mtv-validation-rhel9:1791228247Fixed 2026-10-15RHSA-2026:83663
Migration Toolkit for Virtualization 2.11migration-toolkit-virtualization/mtv-validation-rhel9:1791229031Fixed 2026-10-15RHSA-2026:83662
OpenShift Security Profiles Operator 1compliance/openshift-security-profiles-operator-bundle:1790626888Fixed 2026-10-06RHSA-2026:76752
OpenShift Security Profiles Operator 1compliance/openshift-security-profiles-rhel8-operator:1790623030Fixed 2026-10-06RHSA-2026:76752
Red Hat Edge Manager 1.1rhem/flightctl-alert-exporter-rhel10:1789485396Fixed 2026-09-16RHSA-2026:68044
Red Hat Edge Manager 1.1rhem/flightctl-alertmanager-proxy-rhel10:1789486842Fixed 2026-09-16RHSA-2026:68044
Red Hat Edge Manager 1.1rhem/flightctl-api-rhel10:1789485939Fixed 2026-09-16RHSA-2026:68044
Red Hat Edge Manager 1.1rhem/flightctl-cli-artifacts-rhel10:1789488001Fixed 2026-09-16RHSA-2026:68044
Red Hat Edge Manager 1.1rhem/flightctl-db-setup-rhel10:1789487240Fixed 2026-09-16RHSA-2026:68044
Red Hat Edge Manager 1.1rhem/flightctl-imagebuilder-api-rhel10:1789486040Fixed 2026-09-16RHSA-2026:68044
Assisted Installer for Red Hat OpenShift Container Platform 2assisted/agent-preinstall-image-builder-rhel9Affected
Deployment Validation Operatordvo/deployment-validation-rhel8-operatorNot affected
Gatekeeper 3gatekeeper/gatekeeper-rhel9Not affected
MCP Server for Red Hat OpenShiftopenshift-mcp-beta/openshift-mcp-server-rhel9Will not fix
MCP Server for Red Hat OpenShiftopenshift-mcp-tech-preview/openshift-mcp-server-rhel9Will not fix
Multicluster Global Hubmulticluster-globalhub/multicluster-globalhub-grafana-rhel9Not affected
OpenShift Developer Tools and ServiceshelmNot affected
OpenShift Lightspeedopenshift-lightspeed/openshift-mcp-server-rhel9Not affected
OpenShift Service Mesh 3openshift-service-mesh/istio-rhel9-operatorNot affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicloud-integrations-rhel9Affected
134 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-50162.

Attack patterns (CAPEC)

  • CAPEC-13 Subverting Environment Variable Values Likelihood: High · Severity: Very High
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-72 URL Encoding Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very 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-80 Using UTF-8 Encoding to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-267 Leverage Alternate Encoding Likelihood: High · Severity: High

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

References

Check your stackJSON