
CVE catalog
CVE-2026-50162
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 travers
- Severity
- Medium · CVSS 6.9
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.44% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-oras-oras-go | sid | 2.6.2-2 | fixed |
| Debian | golang-oras-oras-go | forky | 2.6.2-2 | fixed |
| Debian | golang-oras-oras-go | trixie | 2.5.0-1 | vulnerable |
| Debian | golang-oras-oras-go | bookworm | 1.1.1-1 | vulnerable |
| Cpe | golang-oras-oras-go | Not reported | Not reported | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-oras-oras-go | source | sid | 2.6.2-1 | not yet assigned | Not reported | [1142456] |
| Debian | golang-oras-oras-go | source | forky | 2.6.2-1 | not yet assigned | Not reported | [1142456] |
| Debian | golang-oras-oras-go | source | trixie | (unfixed) | not yet assigned | Not reported | [1142456] |
| Debian | golang-oras-oras-go | source | bookworm | (unfixed) | not yet assigned | Not reported | [1142456] |
Notes
[trixie] golang-oras-oras-go: Minor issue [bookworm] golang-oras-oras-go: Limited support, minor issue; v1.1.1 affected too, content/file.go resolveWritePath() lacks symlink resolution
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [golang-oras-oras-go-dev]Affected
Source package: [golang-oras-oras-go]
Details (2)
1.1.1-1· all · bookwormAffected
nvd · golang-oras-oras-go · debian · bookworm; nvd · golang-oras-oras-go · debian · 12
1.1.1-1· all · bookwormAffected
nvd · golang-oras-oras-go · debian · bookworm; nvd · golang-oras-oras-go · debian · 12
[Debian 13 (Trixie)]
- [golang-oras-oras-go-dev]Affected
Source package: [golang-oras-oras-go]
Details (2)
2.5.0-1· all · trixieAffected
nvd · golang-oras-oras-go · debian · 13
2.5.0-1· all · trixieAffected
nvd · golang-oras-oras-go · debian · 13
Observed:
References
- [https://github.com/oras-project/oras-go/commit/cc323e564d90c6b5b4bdd71d3c8d2ee2713b37e5]
- [https://github.com/oras-project/oras-go/releases/tag/v2.6.1]
- [https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-50162]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-50162]
- [https://security-tracker.debian.org/tracker/CVE-2026-50162]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-50162.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]