CVE-2026-85731 Details
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.
A vulnerability in the Oras-Go library prior to version 2.6.2 allows for arbitrary file creation or overwriting outside the designated working directory of the file store. This issue arises when extracting OCI layers from tarballs that are marked to be unpacked. The extraction process fails to properly validate symlink targets, allowing a malicious archive to create a symlink chain that bypasses lexical checks and directs to an absolute path chosen by the attacker. As a result, files can be overwritten or created in locations writable by the process, potentially leading to unauthorized code execution.
Users should update to Oras-Go version 2.6.2 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 16, 2026CISA-ADP
Assessed Sep 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/oras-project/oras-go/security/advisories/GHSA-m37j-52j7-pjw7 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/oras-project/oras-go/commit/adab2f25ea95ef4e6e41f50db9266a6701399422 | [email protected] | Source CodeVendor |
| https://github.com/oras-project/oras-go/releases/tag/v2.6.2 | [email protected] | Release NotesVendor |
| https://github.com/oras-project/oras-go/security/advisories/GHSA-m37j-52j7-pjw7 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| oras-go | <= 2.6.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 16, 2026 | CVE Modified | CISA-ADP |
| Sep 16, 2026 | New CVE Received | [email protected] |
Volerion