# CVE-2026-50163: `oras-go` tar extraction: Hardlink entry with relative Linkname escapes extract dir via process CWD resolution

> Attackers can escape extraction directories via hardlink path traversal in oras-go, potentially reading or modifying sensitive files like credentials.

- **Severity:** High 7.1 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`)
- **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:** 17 Jul 2026
- **Updated:** 20 Jul 2026
- **Also known as:** CLEANSTART-2026-AH23737, CLEANSTART-2026-BF41428, CLEANSTART-2026-NW06538, CLEANSTART-2026-PW54184, DEBIAN-CVE-2026-50163, GHSA-fxhp-mv3v-67qp, GO-2026-5880, MINI-22fp-mf59-q3q8, MINI-22qw-2266-8vh5, MINI-24q3-2q36-3xxr, MINI-26cj-q23f-46pg, MINI-26fj-r6pv-cxmm, MINI-26v4-p83r-pm3c, MINI-27mg-mwvg-pgg6, MINI-27xv-37h4-hwmq, MINI-2gfg-97pj-4vxr, MINI-2gr4-qrr9-3c65, MINI-2hqw-rq44-fr75, MINI-2p7j-w7pv-m56v, MINI-2q7j-5prj-wmxx, MINI-2rv2-hcjw-37q5, MINI-2vpw-qf8g-qwg8, MINI-2x8w-hw3f-j465, MINI-36c6-grj5-v42g, MINI-36fq-h8f9-gp5h, MINI-36xv-qmj6-fxmq, MINI-376r-q7qx-x4j7, MINI-37cf-hxpw-44g9, MINI-38w6-m698-3v34, MINI-3932-mjcc-mxgq, MINI-3mvq-rcgc-26pc, MINI-3q55-ffpx-gcwq, MINI-3qmq-mvx9-h3f7, MINI-3v83-xpmc-xhj7, MINI-423r-w79x-hwgm, MINI-428m-5v7j-8pc4, MINI-4447-xpmc-wxw7, MINI-465f-wr9v-qhfj, MINI-46g9-h3jj-955x, MINI-4grc-h747-f2m6, MINI-4grf-f87q-3rh6, MINI-4mmh-xp25-gp42, MINI-4w5g-g8cx-v3g3, MINI-4x92-9c42-v5qf, MINI-52pm-c276-74rw, MINI-55gm-vvq3-rghm, MINI-594v-6xrw-jjxq, MINI-5cm8-554w-5p4j, MINI-5ffh-g6g9-wg38, MINI-5p7x-fqwq-98pj, MINI-5xhf-388v-457v, MINI-65f2-mgpc-vm2w, MINI-65q2-hhxp-7w6w, MINI-6774-f97r-3p74, MINI-6c5q-v9xh-gfmh, MINI-6c7j-x557-pcfj, MINI-6p7c-frq9-cr65, MINI-6rmx-2mmx-fr9q, MINI-6rr8-87g2-9fcx, MINI-7388-3g97-2prx, MINI-749g-xwhf-2wpj, MINI-7543-89q3-f3c4, MINI-759g-qxm7-33f4, MINI-789h-p3rv-675f, MINI-7f7j-95q7-xm69, MINI-7fx5-9rvj-382h, MINI-7jrx-m6j5-fvcg, MINI-7q58-cr66-vppf, MINI-7qp2-28cx-2cx2, MINI-7x48-2pwc-xqw6, MINI-7xjh-7pw9-39rc, MINI-849x-x9cq-3r8x, MINI-8599-48q4-7h32, MINI-89cr-6xff-m89p, MINI-8cjw-3g77-w596, MINI-8hvc-83wj-4363, MINI-8mg6-q228-rmhr, MINI-8mhv-x4cj-m6vc, MINI-8p49-5v9q-q96q, MINI-8r37-4x9m-5gv7, MINI-8w4f-8453-9jgm, MINI-8xf8-7wcv-qr99, MINI-92pq-x6r9-3xj6, MINI-94jj-cvh5-3998, MINI-95gq-j7jj-v6w9, MINI-963v-hqx6-hx6f, MINI-9698-qxgx-5x9x, MINI-96wg-2m3f-q7rp, MINI-979h-6272-8m8q, MINI-984c-3h5x-3932, MINI-989x-jf5p-rxpp, MINI-9f4q-45jv-9f58, MINI-9gmr-3hcf-fv2x, MINI-9mw8-4cfg-cx4g, MINI-9wjw-vr75-8g94, MINI-9xp7-rhm6-cf7x, MINI-c3q9-hp6x-59w4, MINI-c42w-vxh8-fmj3, MINI-c49x-9fxx-rg6p, MINI-c4jc-phq5-mw8j, MINI-c4jx-929f-qw49, MINI-c4qr-xq6r-hc7g, MINI-cgmj-m5x5-h9qq, MINI-cvqx-f666-gh3m, MINI-cw9p-qmx5-gwfj, MINI-cwmr-8g67-cff9, MINI-f2qj-cw2x-rwwg, MINI-f3fh-rwrh-mg2q, MINI-f8pv-gm4x-9w59, MINI-f995-g2j6-946q, MINI-fcj5-r5h4-49gc, MINI-fcrq-9pp7-jqr8, MINI-fhgc-c8h8-4j2x, MINI-fqcc-p7j5-9pmv, MINI-frvm-925p-4vh9, MINI-fwjv-9q5r-m3pr, MINI-g2fc-vm32-25fw, MINI-g38h-47px-ggxf, MINI-g3q3-fpvq-67c4, MINI-g4x9-cmp9-h25p, MINI-g697-ff23-4mvg, MINI-g8fw-g3r7-94pq, MINI-g96p-8743-6v83, MINI-gcw3-34fw-7j42, MINI-ggf3-cvgp-wxm2, MINI-ggjh-268g-hpw6, MINI-gj5q-9jqv-vhfp, MINI-gr5c-6q69-mjc2, MINI-gvh7-x348-f47w, MINI-h756-cmfp-q766, MINI-h8j7-jmch-hfvj, MINI-hc95-wp2w-j6fp, MINI-hg3h-vv28-hx96, MINI-hh8c-rvmq-h7c2, MINI-hjjm-rp2q-wvh2, MINI-hm6q-m5ch-rc58, MINI-hpwg-2m4g-8g32, MINI-hq6m-cgcj-c8hw, MINI-hqm5-pgff-8qmp, MINI-hqmx-583x-xq9f, MINI-hvwx-mmgm-927x, MINI-j2c8-gxmw-fjjm, MINI-j2wf-r97m-xpqg, MINI-jrfq-jj7x-8p53, MINI-jrqm-gg7v-3qvm, MINI-jwff-hgwg-4hvp, MINI-jx87-c5f3-xg9f, MINI-m388-h333-93gp, MINI-m3qg-cfmp-h475, MINI-m5c9-f94j-vxqc, MINI-m7pj-mfjc-5xwf, MINI-mfpv-4jfv-cx2v, MINI-mg6f-2prg-hq9q, MINI-mggj-j77h-r54p, MINI-mm55-pwq4-7wg7, MINI-mm79-63p3-h97r, MINI-mpmv-gfcg-7cgp, MINI-mxg8-6mcm-r85v, MINI-mxvq-729r-2635, MINI-p2gm-775w-v59x, MINI-p3fx-v869-mrw5, MINI-p4r4-8c7m-4g7w, MINI-p52p-29m2-w8qw, MINI-p5x9-965c-56xm, MINI-p637-2pq9-2jhr, MINI-p768-w6mr-x879, MINI-pfx5-q7f2-x246, MINI-pfx7-5cpq-9xfq, MINI-phg2-8x9q-g59w, MINI-phqr-9rgx-r26h, MINI-pm38-7c5q-2rr8, MINI-pm7c-7qmr-4hvg, MINI-pmjm-x5xw-xvg2, MINI-pqfr-8xpg-x94m, MINI-pv3v-v2qc-c6jh, MINI-pv9m-94q4-8j94, MINI-pwgg-gp8q-6h7m, MINI-pxqm-mq8g-p347, MINI-q77m-q566-rxjr, MINI-q7cw-3g9m-chgv, MINI-q7wp-pc9f-f47x, MINI-q8mj-9q59-6mg3, MINI-qfh6-f8m5-5wcx, MINI-qgfp-5p5h-h37r, MINI-qr2h-mm7m-qf5q, MINI-qv35-78vp-cc6f, MINI-qvxg-f5fh-vjmm, MINI-qx6h-cp35-47qv, MINI-r8m9-ghqq-q7w5, MINI-r93f-8p8j-6mwv, MINI-r9m8-crp4-ggfh, MINI-rc38-qgqr-f6gv, MINI-rcrv-w2xr-w824, MINI-rf86-wchr-c8w4, MINI-rrq4-g6g4-2w26, MINI-rrqp-g4jm-q8qj, MINI-rvvx-cqv2-7j26, MINI-rwhf-wxh6-92fh, MINI-v2m5-7cfm-pc9c, MINI-v74m-xf45-8x83, MINI-vc9h-v9f4-rx6j, MINI-vcf4-8gc8-73cv, MINI-vcrh-rhpm-pm3m, MINI-vf29-c8xg-76v9, MINI-vhhg-rx3r-v46x, MINI-vv56-jrr5-5r52, MINI-vxf3-5627-9frw, MINI-w3vq-vchv-9j75, MINI-w9c6-j6m2-vh92, MINI-w9qf-qrqw-cprx, MINI-wcj4-qjqf-95xq, MINI-wf6p-4hcf-3gc5, MINI-wvfg-53qq-vw89, MINI-www9-fwmh-5x5w, MINI-x5v6-rjr3-3h6v, MINI-x8m5-w2p6-v28f, MINI-xc3g-7wf4-gh6p, MINI-xhq2-wh53-w56f, MINI-xmq7-c223-44c5, ROOT-APP-GOBINARY-CVE-2026-50163, UBUNTU-CVE-2026-50163, openSUSE-SU-2026:11297-1

## What is CVE-2026-50163?

CVE-2026-50163 is a high-severity path traversal vulnerability in oras-project oras-go, published on 17 Jul 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, ensureLinkPath in content/file/utils.go:262-275 validates a hardlink target relative to the extract base but returns the unresolved target, causing os.Link("victim.secret", "<extract_base>/payload.tar.gz/evil_cwd_link") to resolve header.Linkname against the process current working directory for a Typeflag=TypeLink entry such as Name=payload.tar.gz/evil_cwd_link and Linkname="victim.secret" with io.deis.oras.content.unpack: "true", which can expose or tamper with files such as .env, .git/config, .aws/credentials, and ~/.ssh/config. 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-50163?

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 |
| `oras` | openSUSE:Tumbleweed | All versions | 1.3.3-2.1 |

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

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

## Is CVE-2026-50163 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2026-50163 is a high-severity path traversal vulnerability in oras-project oras-go, published on 17 Jul 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-50163 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-50163/ (Markdown: https://insights.sbomify.com/CVE-2026-50163/index.md)
```

## Sources

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

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