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 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.
CVSS

No CVSS.

Configurations

No configuration.

History

24 Oct 2026, 20:10

Type Values Removed Values Added
Summary
  • (es) oras-go es una biblioteca Go para gestionar artefactos OCI. Antes de la versión 2.6.1, resolveWritePath() en content/file/file.go utiliza una comprobación léxica de filepath.Rel para workingDir y no tiene en cuenta el recorrido de enlaces simbólicos, por lo que cuando AllowPathTraversalOnWrite=false un título de blob controlado por el atacante a través de ocispec.AnnotationTitle como out/pwn.txt puede seguir un enlace simbólico de workingDir out -> /some/outside/dir y hacer que pushFile() cree /some/outside/dir/pwn.txt fuera de workingDir. Este problema se ha solucionado en la versión 2.6.1.

20 Jul 2026, 19:17

Type Values Removed Values Added
References () https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv - () https://github.com/oras-project/oras-go/security/advisories/GHSA-8xwf-rjm4-xvhv -

17 Jul 2026, 20:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-07-17 20:17

Updated : 2026-10-24 20:10


NVD link : CVE-2026-50162

Mitre link : CVE-2026-50162

CVE.ORG link : CVE-2026-50162


JSON object : View

Products Affected

No product.

CWE
CWE-73

External Control of File Name or Path