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

[CVE catalog]

Severity
Medium · CVSS 6.9CVSS: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.

DistributionPackageReleaseVersionStatus
Debiangolang-oras-oras-gosid2.6.2-2fixed
Debiangolang-oras-oras-goforky2.6.2-2fixed
Debiangolang-oras-oras-gotrixie2.5.0-1vulnerable
Debiangolang-oras-oras-gobookworm1.1.1-1vulnerable
Cpegolang-oras-oras-goNot reportedNot reportedvulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-oras-oras-gosourcesid2.6.2-1not yet assignedNot reported[1142456]
Debiangolang-oras-oras-gosourceforky2.6.2-1not yet assignedNot reported[1142456]
Debiangolang-oras-oras-gosourcetrixie(unfixed)not yet assignedNot reported[1142456]
Debiangolang-oras-oras-gosourcebookworm(unfixed)not yet assignedNot reported[1142456]

[Debian bug #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)]

  • Source package: [golang-oras-oras-go]

    Details (2)
    • 1.1.1-1 · all · bookworm

      Affected

      nvd · golang-oras-oras-go · debian · bookworm; nvd · golang-oras-oras-go · debian · 12

    • 1.1.1-1 · all · bookworm

      Affected

      nvd · golang-oras-oras-go · debian · bookworm; nvd · golang-oras-oras-go · debian · 12

[Debian 13 (Trixie)]

  • Source package: [golang-oras-oras-go]

    Details (2)
    • 2.5.0-1 · all · trixie

      Affected

      nvd · golang-oras-oras-go · debian · 13

    • 2.5.0-1 · all · trixie

      Affected

      nvd · golang-oras-oras-go · debian · 13

Observed:

References