CVEfocus › CVE database › CVE-2026-85731

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

CVSS 8.8 HighEPSS 0.6% (higher than 45% of CVEs)Published 2026-09-16Updated 2026-09-16Assigner: GitHub_M

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.

CWE-22CWE-59

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
2Fix pending
2Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-oras-oras-goUnder investigationUBUNTU-CVE-2026-85731
Ubuntu 24.04golang-oras-oras-goUnder investigationUBUNTU-CVE-2026-85731
Debian 14golang-oras-oras-goFixed2.6.2-1DEBIAN-CVE-2026-85731
Debian 13golang-oras-oras-goFix pendingDEBIAN-CVE-2026-85731
Debian 12golang-oras-oras-goFix pendingDEBIAN-CVE-2026-85731
Go libraryoras.land/oras-go/v2Fixed2.6.2GO-2026-6499

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.