VDB
Sign up
MEDIUM6.8

GHSA-pxq6-2prw-chj9

Moby has an Off-by-one error in its plugin privilege validation

Quick fix

GHSA-pxq6-2prw-chj9 — github.com/moby/moby/v2: upgrade to the fixed version with the command below.

go get github.com/moby/moby/v2@v2.0.0-beta.8

Details

## Summary

A security vulnerability has been detected that allows [plugins](https://docs.docker.com/engine/extend/legacy_plugins/) privilege validation to be bypassed during `docker plugin install`. Due to an error in the daemon's privilege comparison logic, the daemon may incorrectly accept a privilege set that differs from the one approved by the user.

Plugins that request exactly one privilege are also affected, because no comparison is performed at all.

## Impact

**If plugins are not in use, there is no impact.**

When a plugin is installed, the daemon computes the privileges required by the plugin's configuration and compares them with the privileges approved during installation. A malicious plugin can exploit this bug so that the daemon accepts privileges that differ from what was intended to be approved.

Anyone who depends on the plugin installation approval flow as a meaningful security boundary is potentially impacted.

Depending on the privilege set involved, this may include highly sensitive plugin permissions such as broad device access.

**For consideration: exploitation still requires a plugin to be installed from a malicious source, and Docker plugins are relatively uncommon. Docker Desktop also does not support plugins.**

## Workarounds

If unable to update immediately: - Do not install plugins from untrusted sources - Carefully review all privileges requested during `docker plugin install` - Restrict access to the Docker daemon to trusted parties, following the principle of least privilege - Avoid relying on plugin privilege approval as the only control boundary for sensitive environments

## Credits

- Reported by Cody (c@wormhole.guru, PGP 0x9FA5B73E)

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/docker/docker
Introduced in: 0

No fixed version published yet for github.com/docker/docker (go modules). Pin to a known-safe version or switch to an alternative.

Go/github.com/moby/moby/v2
Introduced in: 0Fixed in: 2.0.0-beta.8
Fixgo get github.com/moby/moby/v2@v2.0.0-beta.8
Go/github.com/moby/moby
Introduced in: 0

No fixed version published yet for github.com/moby/moby (go modules). Pin to a known-safe version or switch to an alternative.

References