CVE-2026-50162: CWE-73: External Control of File Name or Path in oras-project oras-go
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.
AI Analysis
Technical Summary
The oras-go library versions before 2.6.1 contain a path traversal vulnerability (CWE-73) in the resolveWritePath() function. The function uses a lexical relative path check that does not consider symlink traversal, enabling an attacker to specify a blob title (via ocispec.AnnotationTitle) that can escape the working directory if a symlink is present. This leads to pushFile() creating files outside the intended directory, potentially allowing unauthorized file writes. The vulnerability is addressed in oras-go version 2.6.1.
Potential Impact
An attacker can exploit this vulnerability to write files outside the intended working directory by leveraging symlink traversal combined with a crafted blob title. This could lead to unauthorized file creation or modification on the host filesystem where oras-go is used, potentially impacting system integrity or security depending on the context of usage.
Mitigation Recommendations
This vulnerability is fixed in oras-go version 2.6.1. Users should upgrade to version 2.6.1 or later to remediate this issue. No official patch or temporary fix information is provided beyond the version update. Until upgrading, users should be cautious about untrusted input controlling blob titles and the presence of symlinks in working directories.
CVE-2026-50162: CWE-73: External Control of File Name or Path in oras-project oras-go
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.
CVSS v4.0
Score 6.9medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The oras-go library versions before 2.6.1 contain a path traversal vulnerability (CWE-73) in the resolveWritePath() function. The function uses a lexical relative path check that does not consider symlink traversal, enabling an attacker to specify a blob title (via ocispec.AnnotationTitle) that can escape the working directory if a symlink is present. This leads to pushFile() creating files outside the intended directory, potentially allowing unauthorized file writes. The vulnerability is addressed in oras-go version 2.6.1.
Potential Impact
An attacker can exploit this vulnerability to write files outside the intended working directory by leveraging symlink traversal combined with a crafted blob title. This could lead to unauthorized file creation or modification on the host filesystem where oras-go is used, potentially impacting system integrity or security depending on the context of usage.
Mitigation Recommendations
This vulnerability is fixed in oras-go version 2.6.1. Users should upgrade to version 2.6.1 or later to remediate this issue. No official patch or temporary fix information is provided beyond the version update. Until upgrading, users should be cautious about untrusted input controlling blob titles and the presence of symlinks in working directories.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-03T20:54:20.432Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5b5eb02d1edb114c7fb351
Added to database: 07/18/2026, 11:08:32 UTC
Last enriched: 07/18/2026, 11:54:30 UTC
Last updated: 07/18/2026, 13:13:21 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.