cve.bz

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

8.8 highEPSS 0.7%Fix available

High (8.8) in oras-project oras-go. EPSS 0.7% 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, content/file.Store extraction of OCI layers marked with io.deis.oras.content.unpack=true can write outside the store working directory. The pushDir path through extractTarDirectory and ensureLinkPath validates symlink targets lexically, resolveRelToBase skips its parent-symlink walk for root-level entries, and writeFile follows a terminal symlink when opening a regular file. A malicious archive can therefore create a symlink chain whose lexical target remains inside the extraction root but whose resolved target is an attacker-selected absolute path, then overwrite that target with a same-named regular-file entry even when AllowPathTraversalOnWrite is false. Pulling an attacker-controlled artifact can create or overwrite any file writable by the process and may lead to code execution. This issue is fixed in version 2.6.2.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 53rd 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: total, assessed 2026-09-16. 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-85731 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-85731?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-85731?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-85731 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-m37j-52j7-pjw7Gooras.land/oras-go/v2<2.6.22.6.2
GO-2026-6499Gooras.land/oras-go/v2<2.6.22.6.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13golang-oras-oras-gono fix listedDEBIAN-CVE-2026-85731
Debian14golang-oras-oras-go2.6.2-1DEBIAN-CVE-2026-85731
Ubuntu24.04:LTS, 26.04:LTSgolang-oras-oras-gono fix listedUBUNTU-CVE-2026-85731
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 10 morehelm3.22.0-150000.1.99.1SUSE-SU-2026:4417-1
openSUSETumbleweedhelm33.22.0-1.1openSUSE-SU-2026:11832-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 Important.

Red Hat's statement

Red Hat has rated this vulnerability as an Important severity because successful exploitation allows an attacker to achieve arbitrary file writes within the privileges of the executing process, potentially leading to command execution. Exposure is contingent on applications pulling and extracting artifact layers from untrusted or compromised container registries, requiring user interaction to ingest malicious content. The impact remains bounded by the permissions of the hosting environment or service account executing the extraction.

Red Hat's mitigation

To mitigate this issue, Red Hat recommends avoiding the processing of untrusted OCI artifacts with oras-go. If processing untrusted artifacts is unavoidable, ensure that the application utilizing oras-go operates within a restricted and isolated environment, such as a container or a dedicated user with minimal privileges, to limit the potential impact of arbitrary file writes and code execution.

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-85731.

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