Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-50162: CWE-73: External Control of File Name or Path in oras-project oras-go

0
Medium
VulnerabilityCVE-2026-50162cvecve-2026-50162cwe-73
Published: 07/17/2026 (07/17/2026, 19:39:28 UTC)
Source: CVE Database V5
Vendor/Project: oras-project
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Affected versions
<2.6.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/18/2026, 11:54:30 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses