# CVE-2026-50162: oras-go: file store write outside workingDir via symlink traversal

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-01T21:43:10.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-8xwf-rjm4-xvhv, GO-2026-5879
- Weaknesses: CWE-73
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

oras-go is a Go library for managing OCI artifacts. Prior to 2.6.1, resolveWritePath() in content/file/file.go uses a lexical filepath.Rel check for workingDir and does not account for symlink traversal, so when AllowPathTraversalOnWrite=false an attacker-controlled blob title through ocispec.AnnotationTitle such as out/pwn.txt can follow a workingDir symlink out -> /some/outside/dir and cause pushFile() to create /some/outside/dir/pwn.txt outside workingDir. This issue is fixed in version 2.6.1.

(As written by CVE List.)

## Affected

- oras-project oras-go: < 2.6.1
- oras.land/oras-go/v2 (Go): before 2.6.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv> (exploit, advisory, web)
- <https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5> (fix, web)
- <https://github.com/oras-project/oras-go/releases/tag/v2.6.1>
- <https://github.com/oras-project/oras-go> (package)

## Sources

- CVE List: [CVE-2026-50162](https://www.cve.org/CVERecord?id=CVE-2026-50162), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-8xwf-rjm4-xvhv](https://github.com/advisories/GHSA-8xwf-rjm4-xvhv), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5879](https://pkg.go.dev/vuln/GO-2026-5879), CC-BY-4.0, modified 2026-07-24
- NVD: [CVE-2026-50162](https://nvd.nist.gov/vuln/detail/CVE-2026-50162), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-50162 · Whole record: https://cve.day/CVE-2026-50162.json · Rebuilt by cve.day 2026-11-25T22:59:28.539Z
