CVE-2026-33997: Moby has an Off-by-one error in its plugin privilege validation
Summary A security vulnerability has been detected that allows 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.
Published Mar 27, 2026 · Updated Mar 31, 2026
Affected packages
github.com/docker/docker
- Ecosystem
- Go
- Affected
- < 29.3.1
- Fixed in
- No patched version yet
- Check
go list -m github.com/docker/docker
github.com/moby/moby
- Ecosystem
- Go
- Affected
- < 29.3.1
- Fixed in
- No patched version yet
- Check
go list -m github.com/moby/moby
github.com/moby/moby/v2
- Ecosystem
- Go
- Affected
- < 2.0.0-beta.8
- Fixed in
- 2.0.0-beta.8
- Check
go list -m github.com/moby/moby/v2
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A security vulnerability has been detected that allows 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 ([email protected], PGP 0x9FA5B73E)
Credited to vvoland.
References
- https://github.com/moby/moby/security/advisories/GHSA-pxq6-2prw-chj9
- https://github.com/moby/moby/commit/f4d6f25bf0c3fa12d4968320a45685947756a22a
- https://docs.docker.com/engine/extend/legacy_plugins
- https://github.com/moby/moby/releases/tag/docker-v29.3.1
- https://nvd.nist.gov/vuln/detail/CVE-2026-33997
- https://github.com/advisories/GHSA-pxq6-2prw-chj9
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-41567
Docker: `PUT /containers/{id}/archive` executes container binary on the host
high7.2No fixMay 18, 2026CVE-2026-41568
Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap
medium6.1No fixMay 18, 2026CVE-2026-42306
Docker: Race condition in docker cp allows bind mount redirection to host path
high7.2No fixMay 18, 2026CVE-2026-34040
Moby has AuthZ plugin bypass when provided oversized request bodies
high8.8Mar 27, 2026CVE-2025-54388
Moby firewalld reload makes published container ports accessible from remote hosts
medium4.6Jul 29, 2025CVE-2025-54410
Moby firewalld reload removes bridge network isolation
low3.3Jul 29, 2025
