UNIX Symbolic Link (Symlink) Following Affecting github.com/moby/moby/v2 package, versions <2.0.0-beta.14


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (2nd 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-GITHUBCOMMOBYMOBYV2-16755429
  • published19 May 2026
  • disclosed18 May 2026
  • creditUnknown

Introduced: 18 May 2026

CVE-2026-42306  (opens in a new tab)
CWE-61  (opens in a new tab)

How to fix?

Upgrade github.com/moby/moby/v2 to version 2.0.0-beta.14 or higher.

Overview

Affected versions of this package are vulnerable to UNIX Symbolic Link (Symlink) Following during docker cp mount setup before subsequent mount syscall. An attacker can overwrite arbitrary files on the host or cause denial of service by exploiting a race condition where a symlink is created at the mount destination path before the bind mount occurs, redirecting the mount to an unintended host location. This is only exploitable if a container has at least one volume mount, a process inside the container can rapidly create and swap symlinks at the mount destination, and an operator initiates a docker cp or calls the relevant archive API endpoints.

Workaround

This vulnerability can be mitigated by only running containers from trusted images, avoiding the use of docker cp with untrusted running containers, and using authorization plugins to restrict access to the archive API endpoints.

CVSS Base Scores

version 4.0
version 3.1