Symlink Attack Affecting github.com/oras-project/oras-go/v3/content/file package, versions <3.0.0-dev


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (27th 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 Learn

Learn about Symlink Attack vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMORASPROJECTORASGOV3CONTENTFILE-17808217
  • published7 Jul 2026
  • disclosed1 Jul 2026
  • creditUnknown

Introduced: 1 Jul 2026

CVE-2026-50163  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Symlink Attack through improper validation of hardlink targets during tar extraction. An attacker can access or modify files outside the intended extraction directory by crafting a malicious tarball with a hardlink entry whose target is a relative path, causing the extraction process to create a hardlink to an arbitrary file in the process's current working directory. This can result in unauthorized reading or tampering with sensitive files accessible to the process.

CVSS Base Scores

version 4.0
version 3.1