External Control of File Name or Path Affecting github.com/oras-project/oras-go/content/file package, versions >=0.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMORASPROJECTORASGOCONTENTFILE-17808223
  • published3 Jul 2026
  • disclosed1 Jul 2026
  • creditUnknown

Introduced: 1 Jul 2026

CVE-2026-50162  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

There is no fixed version for github.com/oras-project/oras-go/content/file.

Overview

Affected versions of this package are vulnerable to External Control of File Name or Path through the pushFile process when symlink traversal is possible within the working directory. An attacker can write files outside the intended directory boundary by supplying a crafted blob title that targets a symlinked path component. This is only exploitable if the working directory contains a symlink path component and the configuration option AllowPathTraversalOnWrite is set to false.

CVSS Base Scores

version 4.0
version 3.1