CVE-2026-85731 oras-go: Arbitrary file write outside file.Store root via symlink-chain bypass in tar extraction (pushDir)
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/oras-project/oras-go/security/advisories/GHSA-m37j-52j7-pjw7 exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/oras-project/oras-go/commit/adab2f25ea95ef4e6e41f50db9266a6701399422 patch
- github.com product
- https://github.com/oras-project/oras-go/releases/tag/v2.6.2
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2535549 issue-tracking
- www.cve.org
- github.com
- Debian Security Tracker CVE-2026-85731 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-80873 third-party-advisory