CVE-2026-85731

High

Description

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductOras.land/oras-go/v2
PublishedSep 16, 2026
First seenSep 16, 2026

How to fix

Update
  • oras.land/oras-go/v22.6.2 or later

Affected products

ProductAffected versionsFixed in
oras.land/oras-go/v2Gov < 2.6.22.6.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-85731 · Oras.land/oras-go/v2 · Dark Radar