Uncontrolled Search Path Element Affecting github.com/docker/cli/cli-plugins/manager package, versions <29.2.0-rc.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.47% (38th 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-GITHUBCOMDOCKERCLICLIPLUGINSMANAGER-15435878
  • published6 Mar 2026
  • disclosed4 Mar 2026
  • creditUnknown

Introduced: 4 Mar 2026

CVE-2025-15558  (opens in a new tab)
CWE-427  (opens in a new tab)

How to fix?

Upgrade github.com/docker/cli/cli-plugins/manager to version 29.2.0-rc.2 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Search Path Element in the legacy system-wide cli-plugin path. An attacker can gain elevated privileges by placing a crafted binary in C:\ProgramData\Docker\cli-plugins directory that is searched by the application when loading plugins.

Note:

This issue affects only Windows users.

PoC

Docker CLI for Windows searches for plugin binaries in C:\ProgramData\Docker\cli-plugins, a directory that does not exist by default. A low-privileged attacker can create this directory and place malicious CLI plugin binaries (docker-compose.exe, docker-buildx.exe, etc.) that are executed when a victim user opens Docker Desktop or invokes Docker CLI plugin features, and allow privilege-escalation if the docker CLI is executed as a privileged user. This issue affects Docker CLI: through 29.1.5 and Windows binaries acting as a CLI-plugin manager using the github.com/docker/cli/cli-plugins/manager https://pkg.go.dev/github.com/docker/cli@v29.1.5+incompatible/cli-plugins/manager package, such as Docker Compose. This issue does not impact non-Windows binaries, and projects not using the plugin-manager code.

remove legacy system-wide cli-plugin path

CVSS Base Scores

version 4.0
version 3.1