CVE-2026-85731
High · 8.8CVSS
8.8
EPSS
0.7%
Published
Sep 16, 2026
CISA due date
—
Cloudanix analysis
A flaw in a popular Go library lets attackers who supply a specially made software package overwrite important files on a computer that downloads it, potentially taking control of the system.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Library
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Path traversal during OCI layer extraction in oras-go allows a malicious tar archive to create symlink chains that lexically stay inside the extraction root but resolve to arbitrary attacker-chosen paths outside it; writeFile then follows the terminal symlink to overwrite the target file even when AllowPathTraversalOnWrite is false.
Why it matters to the business
Organizations that pull untrusted OCI artifacts with the unpack annotation enabled risk arbitrary file writes on systems running the vulnerable library, which can result in code execution, configuration tampering, or supply-chain compromise of build or runtime environments.
How an attack unfolds
An attacker publishes a malicious OCI artifact containing a crafted tar layer with carefully constructed symlinks and a same-named regular file entry. When a victim application using oras-go extracts the layer with the unpack annotation, the flawed symlink validation in resolveRelToBase and ensureLinkPath combined with writeFile's symlink following writes the file to an attacker-chosen absolute path, potentially overwriting binaries or scripts that the process can execute.
How to fix it
Upgrade oras-go to version 2.6.2 or later. Disable the unpack annotation for untrusted artifacts until the library is updated. Review and restrict the permissions of the process performing extractions.
How to confirm the fix worked
Confirm the oras-go module version in go.mod or the vendored source is at least 2.6.2. Re-test extraction of a known malicious archive in an isolated environment to verify writes remain confined to the intended directory.
Typical attack path
- Attacker crafts malicious OCI artifact with symlink chain and regular-file payload
- Victim application pulls the artifact using oras-go with io.deis.oras.content.unpack=true
- pushDir calls extractTarDirectory which invokes ensureLinkPath and resolveRelToBase
- resolveRelToBase skips parent-symlink walk for root-level entries allowing lexical bypass
- writeFile opens the resolved absolute path via the terminal symlink and writes attacker content
- Overwritten file (e.g., binary or script) executes on next invocation, achieving code execution
How to detect it
Search application and container logs for extraction operations on artifacts containing symlink entries; inspect process execution or file-modification events immediately following artifact pulls from untrusted registries; review file-integrity monitoring alerts for unexpected overwrites of binaries or configuration files in system paths.
What your security team should do
- Immediately inventory all Go projects and containers that import oras-go and schedule upgrades to 2.6.2
- Add dependency scanning rules to block builds that reference oras-go versions older than 2.6.2
- Temporarily disable io.deis.oras.content.unpack=true for any untrusted or public registries
- Monitor for new EPSS or KEV updates and reassess exploitation likelihood within 30 days
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-108327 Tanium addressed a path traversal vulnerability in Tanium Data Service. CWE-22
- CVE-2026-121542 In Docker Buildx versions v0.19.0 through v0.38.0, an untrusted Bake definition may… CWE-22
- CVE-2026-63502 Yeti bridges the gap between CTI and DFIR practitioners by providing a Forensics… CWE-22
- CVE-2026-63478 isomorphic-git is a pure JavaScript implementation of Git for Node.js and browsers. CWE-22
- CVE-2026-63500 Yeti bridges the gap between CTI and DFIR practitioners by providing a Forensics… CWE-22
- CVE-2026-63395 isomorphic-git is a pure JavaScript implementation of Git for Node.js and browsers. CWE-22
- CVE-2026-63436 zt-zip is a Java library that provides convenience methods for ZIP archive manipulation. CWE-22
- CVE-2026-121263 A vulnerability was determined in phpMyAdmin MoTranslator up to 6.0.1. CWE-22