A Docker Sandboxes flaw lets a malicious update to a third-party AI agent bundle steal developers' API keys after just one approval, according to a researcher at the security firm Endor Labs who disclosed the flaw, and Docker has fixed it in a new release.
Read also: Microsoft: an internet provider hacked with AI assistance
How the flaw works
The Docker Sandboxes tool runs AI coding agents inside isolated virtual machines, and its promise is that real keys never enter the sandbox, as the developer stores them on their machine and the agent sends its requests with a stand-in key, then a proxy on the host machine swaps in the real key when the request leaves.
The agent bundle defines the destinations that receive the key, and when the developer approves the bundle's request, a binding is recorded that includes the service and the agreed domains. But the flaw is that the system does not later read this list of domains, and only checks that an approval exists for the service name, so the proxy sends the key to any domain the current version of the bundle names.
What the test showed
In the researcher's test, the developer approved a bundle whose only destination was the Anthropic API, which was then replaced with a version pointing to a test server in the same reference. No warning message appeared when the next sandbox was created, the test key reached the server unencrypted, and the approval stayed valid even after the sandbox was deleted.
The policy log revealed nothing, as the connection was logged as allowed with no sign that a key was injected into it, so the reviewer afterward sees an ordinary request, and a malicious version of the bundle can also add its own server to the allowed network list without any alert.
Who is affected and the fix
The flaw, registered as CVE-2026-136998, affects every version before 0.55.0 on Mac, Windows and Linux, and it was introduced with the approvals system in version 0.43.0, released on September 15, and it is shared by thirteen built-in services including Anthropic, OpenAI, GitHub and Google.
Read also: Nvidia releases the OpenShell runtime to isolate AI agents locally
The fix was released on November 30 in version 0.55.0, which enforces approved destinations for API keys and for the OAuth protocol separately, and treats any binding without approved destinations as non-existent. No actual attacks using this flaw have been recorded so far.
The researcher advises updating to 0.55.0, reviewing approvals granted to third-party bundles, and rotating any key that may have been exposed if a suspicious change in a bundle's destination appears, since the damage from the Docker Sandboxes flaw follows the stolen key, and may include charges on the provider's account or access to GitHub repositories.
Comments (0)
No comments have been published yet.
Add a comment