Docker MCP Plugin OCI Image Label Parsing Argument Injection Remote Code Execution Vulnerability
Vulnerability Details
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Docker MCP Plugin. User interaction is required to exploit this vulnerability in that the target must reference a malicious Docker image via a docker URI scheme.
The specific flaw exists within the handling of the io.docker.server.metadata OCI image label. The issue results from the lack of proper validation of a user-supplied string before using it to prepare an argument for a system call. An attacker can leverage this vulnerability to execute code on the host in the context of root.
Additional Details
Docker has issued an update to correct this vulnerability. More details can be found at:
https://github.com/docker/mcp-gateway/security/advisories/GHSA-r2xf-7jw5-pjg6
Disclosure Timeline
- 2026-05-20 - Vulnerability reported to vendor
- 2026-06-24 - Coordinated public release of advisory
- 2026-06-24 - Advisory Updated
Credit
Jabr Al-Otaibi @ DarkCov