# CVE-2026-85731: oras-go: Arbitrary file write outside file.Store root via symlink-chain bypass in tar extraction (pushDir)

> Attackers can overwrite arbitrary files via symlink chains in OCI layer extraction, potentially leading to code execution.

- **Severity:** High 8.8 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 16 Sep 2026
- **Updated:** 16 Sep 2026
- **Also known as:** CLEANSTART-2026-DR73379, CLEANSTART-2026-JS28997, CLEANSTART-2026-VN99750, DEBIAN-CVE-2026-85731, ECHO-5e20-171c-362a, GHSA-m37j-52j7-pjw7, GO-2026-6499, MINI-23mm-jh9v-8rxw, MINI-2566-r6rp-hpg2, MINI-25f6-2mgj-mpx9, MINI-28r9-852j-93rr, MINI-2938-jqgv-j2rw, MINI-29cr-rv72-q9m8, MINI-2c8r-pxc5-cppv, MINI-2c98-7qm7-2g6v, MINI-2gf9-vh79-6m9m, MINI-2gjh-wgf5-789m, MINI-2jmh-hhj4-226q, MINI-2jqw-9q25-68h9, MINI-2r7r-rwcc-8fhr, MINI-2rwr-rxqx-wwc5, MINI-3924-w85c-w8xp, MINI-3pr3-33h4-4m6j, MINI-3pv2-qf92-23qm, MINI-452x-fhvg-4fpr, MINI-46jr-8pww-9vrr, MINI-4j86-58fm-7w6c, MINI-4jc5-7g5f-v44h, MINI-4jg4-63rc-gg66, MINI-4pfv-7hrj-pgfc, MINI-4pxx-cv62-cx6m, MINI-4vhm-7429-pw73, MINI-52ww-3qv7-fr8m, MINI-53hf-wpgx-9c72, MINI-54q5-gw98-j3mh, MINI-559j-c4gj-m4qm, MINI-55cw-w97f-p37v, MINI-55w5-vwqf-4h3h, MINI-568v-mhx8-cv69, MINI-582w-8xxx-hv3x, MINI-5g2j-74cv-jvh4, MINI-5hr9-7xm3-gfmm, MINI-5mq3-gjhf-439x, MINI-5mvx-2vp7-538p, MINI-5p7j-h486-wgmx, MINI-5vxq-vrh3-ph22, MINI-6234-7w43-6gmw, MINI-62v6-2fmm-wf39, MINI-63jf-q53h-g9hv, MINI-64xr-qmgh-hvm2, MINI-6527-px23-m7x6, MINI-6f8h-47m3-v2xw, MINI-6jmq-qpjm-rp42, MINI-6jpr-6w86-grc5, MINI-6mqw-5hgf-wr4c, MINI-6r3q-546q-c69f, MINI-6rpv-5ffc-v64q, MINI-6vq7-jgxr-5753, MINI-6vr5-364c-6rpm, MINI-6vwc-c75g-mmcp, MINI-6wpc-7969-r94c, MINI-7cjx-x39c-524v, MINI-7jrv-cf99-jfc8, MINI-7qxw-3w4h-wr2q, MINI-7x5x-6q82-hpm5, MINI-834p-p567-qhrg, MINI-89m3-967w-9qrp, MINI-89w6-4h28-wc36, MINI-8c38-r3w5-285j, MINI-8f3g-8fc7-vq8f, MINI-8fq2-xmpr-cv77, MINI-8fx8-px5v-rw6w, MINI-8g5h-hw9q-c8qv, MINI-8p27-c8hv-76j2, MINI-8rf4-39hq-h6cj, MINI-8w7g-g8wg-prf6, MINI-93qp-4868-2frj, MINI-948v-cpwp-wmx7, MINI-95fw-3rxp-j622, MINI-95w6-6855-gcq7, MINI-96j2-hwjv-62mc, MINI-9948-j4r2-wjgp, MINI-99v8-6vvw-3rh6, MINI-9hf8-fg73-8jmq, MINI-9j5r-6g98-36rp, MINI-9m43-224r-r3g7, MINI-9q67-2x23-wwqf, MINI-9vqj-4f2j-7w57, MINI-c26j-fq85-2prp, MINI-c389-cvcm-c3x9, MINI-ccpw-xvf8-r2px, MINI-cf7m-3w4j-p7gg, MINI-ch8j-4559-m4j9, MINI-cjfr-w4fr-chp8, MINI-cqv6-qx52-cmjq, MINI-cqwr-2c8g-64qc, MINI-cr3c-82xj-5xj3, MINI-crpq-83jh-rm7m, MINI-f2xx-6pvq-47cw, MINI-f3jg-7j8h-gr49, MINI-f6cc-9mp9-5fhr, MINI-fccm-g7rx-9wmf, MINI-fh8q-73gm-jgp7, MINI-fj7q-pvv9-6r6f, MINI-fmvq-mh5m-xqv4, MINI-fprx-38v3-f444, MINI-g39m-ff5r-mvw7, MINI-g5fh-q3m7-3vrf, MINI-g6qc-gx7q-h54r, MINI-g86m-q5fx-wxm2, MINI-g8q3-2cfx-8gp2, MINI-gcvc-wf7v-j5w9, MINI-ghrv-j499-c5gf, MINI-gj3m-6pf4-cr6v, MINI-gpx5-vcfc-8mh7, MINI-gqrx-4m4w-2wf8, MINI-gr7j-w234-cq6v, MINI-gx77-222c-86mw, MINI-h25w-95hf-7f29, MINI-h643-6vr9-5rjp, MINI-h6w3-fwpr-qfrv, MINI-h7qq-m33g-4m9g, MINI-hccw-4cfv-fgqg, MINI-hf7v-crxc-x433, MINI-hj96-xh43-px3m, MINI-hp72-9qfx-5874, MINI-hqph-pmqr-9jff, MINI-j6p2-ph5g-rv57, MINI-j82q-h46x-q924, MINI-j9vg-gh43-8mgg, MINI-jgf9-583h-83xr, MINI-jhjf-97j7-6hh8, MINI-jhvf-428v-3x4m, MINI-jjv5-8gh8-8244, MINI-jrg7-xrq9-mm74, MINI-jv3w-56pv-fmrq, MINI-m2w2-44g3-jgg5, MINI-m449-63px-7gx2, MINI-m465-4p3w-v4fx, MINI-m6rf-hmm4-gcqj, MINI-m832-h4qm-5fvf, MINI-m83g-8m3m-h4f9, MINI-mgvg-wgx3-m5j8, MINI-mqp4-2222-fvpp, MINI-mvf6-87qj-2fm5, MINI-p49v-m7cj-648x, MINI-pfxx-9cfx-m6m2, MINI-pj5p-2456-3752, MINI-pm3x-r6mx-wv8x, MINI-pp2r-q543-7v8h, MINI-pv8g-3r63-5cq7, MINI-q326-px56-8phh, MINI-q3j9-v4f9-6fx7, MINI-q7m7-7562-pqpf, MINI-q8hc-p6q3-38q2, MINI-q953-qxj4-6whm, MINI-qfp3-6f6r-f75q, MINI-r2qq-wp27-qcj7, MINI-r6cv-7v2q-x75v, MINI-r6qx-5rr5-prc7, MINI-r7w2-mvw9-6g83, MINI-r895-wgm2-4x59, MINI-r9gx-pj2r-rxrj, MINI-r9r7-5v52-5c3p, MINI-rmhp-fh2m-8j2r, MINI-rr9h-cjg7-w7hf, MINI-rx6j-hv93-p798, MINI-v6v4-42mw-x3gw, MINI-v73w-cxjh-xx2p, MINI-v76x-9627-p8pg, MINI-v94v-782m-w6qq, MINI-vmgh-4hx3-2h9r, MINI-vr6x-xj8x-v269, MINI-vvxf-273p-gwrq, MINI-w25p-jmxc-426m, MINI-w446-3c3h-vr8p, MINI-w736-4chq-72fj, MINI-w85c-wfww-h7wh, MINI-w8r3-rc46-h7m6, MINI-whmc-h6xp-w2qr, MINI-wwww-267w-8mh6, MINI-x68h-pc83-g23m, MINI-xj4f-wh65-9ppc, MINI-xm5r-829h-h6xq, MINI-xp4g-x38q-vc8j, MINI-xqmq-wjfc-p9gq, MINI-xxhv-3xj7-fw3m, MINI-xxv7-8x88-p62x, ROOT-APP-GOBINARY-CVE-2026-85731, UBUNTU-CVE-2026-85731

## What is CVE-2026-85731?

CVE-2026-85731 is a high-severity path traversal vulnerability in oras-project oras-go, published on 16 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official 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.

Weakness: CWE-59 (Improper Link Resolution Before File Access), CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)

## Which versions are affected by CVE-2026-85731?

3 open source packages ship an affected version, including oras.land/oras-go/v2.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `oras.land/oras-go/v2` | Go | All versions | 2.6.2 |
| `oras.land/oras-go/v2` | Go | All versions | 2.6.2 |
| `oras.land/oras-go/v2` | Go | All versions | 2.6.2 |

## How do I fix CVE-2026-85731?

Upgrade oras.land/oras-go/v2 to 2.6.2 or later.

## Is CVE-2026-85731 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-85731 exists.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-85731 and fix it if it is affected.

What it is: CVE-2026-85731 is a high-severity path traversal vulnerability in oras-project oras-go, published on 16 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-85731 exists.

Affected packages and fixed versions:
- oras.land/oras-go/v2 (Go): affected all versions; fixed in 2.6.2
- oras.land/oras-go/v2 (Go): affected all versions; fixed in 2.6.2
- oras.land/oras-go/v2 (Go): affected all versions; fixed in 2.6.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-85731/ (Markdown: https://insights.sbomify.com/CVE-2026-85731/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-85731
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-85731
- OSV: https://osv.dev/vulnerability/CVE-2026-85731

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-85731/
Summaries are generated and may contain mistakes; the official description above is the record.
