CVE-2026-85731oras-go: Arbitrary file write outside file.Store root via symlink-chain bypass in tar…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | golang-oras-oras-go | Under investigation | UBUNTU-CVE-2026-85731 | |
| Ubuntu 24.04 | golang-oras-oras-go | Under investigation | UBUNTU-CVE-2026-85731 | |
| Debian 14 | golang-oras-oras-go | Fixed | 2.6.2-1 | DEBIAN-CVE-2026-85731 |
| Debian 13 | golang-oras-oras-go | Fix pending | DEBIAN-CVE-2026-85731 | |
| Debian 12 | golang-oras-oras-go | Fix pending | DEBIAN-CVE-2026-85731 | |
| Go library | oras.land/oras-go/v2 | Fixed | 2.6.2 | GO-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.
- oras-project oras-go: affected: < 2.6.2
References
- https://github.com/oras-project/oras-go/security/advisories/GHSA-m37j-52j7-pjw7
- https://github.com/oras-project/oras-go/commit/adab2f25ea95ef4e6e41f50db9266a6701399422
- https://github.com/oras-project/oras-go/releases/tag/v2.6.2
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.