Skip to content

CVE-2026-85731 oras-go: Arbitrary file write outside file.Store root via symlink-chain bypass in tar extraction (pushDir)

HighCVSS 8.8 EPSS 0.68%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

10 packages: 2 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
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/rhoai/odh-ai-gateway-operator-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-kserve-module-operator-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
redhat/rhoai/odh-ogx-module-operator-rhel9(Red Hat openshift_ai) All versions No fix listed No fix yet
ubuntu/golang-oras-oras-go(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/golang-oras-oras-go(Ubuntu 26.04) All versions No fix listed No fix yet
debian/golang-oras-oras-go(Debian 14) < 2.6.2-1; = 2.5.0-1; = 2.6.0-1 2.6.2-1 Fixed
oras.land/oras-go/v2(Go) < 2.6.2; <= 2.6.1 2.6.2 Fixed
oras-project oras-go = < 2.6.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
oras.land/oras-go/v2(Go) < 2.6.2 2.6.2
redhat/rhoai/odh-ai-gateway-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
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

References