CyberRota Analysis
AI-GeneratedThe oras-go library prior to version 2.6.1 is vulnerable to a path traversal attack due to improper handling of symlink traversal in the resolveWritePath() function. This flaw allows an attacker to manipulate blob titles to write files outside the intended working directory, potentially leading to unauthorized file creation in sensitive locations. Organizations using affected versions of oras-go should prioritize upgrading to version 2.6.1 to mitigate this security risk.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.