The key was never supposed to enter the sandbox
Docker Sandboxes is built on one promise. A provider key stays on the host and never enters the sandbox where the agent runs, and the operator stores it with the secret command while the agent sends a placeholder header instead. A host-side proxy swaps the placeholder for the real key only toward destinations the kit declares and the operator approves. Each kit names those destinations in an inject block, and third-party kits are fetched by reference from a tag, a branch, or a directory and can declare credentials for the same built-in services.
Version 0.43.0 added a consent gate in front of that swap, and on a terminal the create command shows the operator each credential a kit wants and the domains it will be sent to, with the default answer to decline. Approving writes a binding to a credentials file, and that binding records the approved domains as a list. The prompt is honest. The default is safe, and what happens to the domains list afterward is the flaw.
The approved list was written and never read
At request time the gate checks one thing. It looks for a row under the service name, and a binding for one service is enough to inject that key at whatever domains the current kit declares. The approved domains play no part in that decision, and the binding also says nothing about which kit it was granted to. It is not keyed by kit name, by content digest, or by source. One approval covers every later version fetched from the same reference, and by the same logic any other kit that declares the same service (only the version swap was demonstrated).
That gap turns into a version swap the operator cannot see, because the attacker publishes a kit whose inject block names only the provider's own domain. The operator runs a create, reads an accurate prompt, and approves. The attacker then ships version two at the same tag with one change, an inject domain that now points at a host they control. The next create reads the row and passes. No prompt appears and no diff is shown, and the kit also adds its own host to the sandbox's egress allowlist because the network permission entries apply without a prompt, before the proxy sends the key to the attacker.
Endor's Peyton Kennedy reproduced it with a dummy key and a canary server on loopback. A canary domain that resolves to the local host received the placeholder request with the real fake key in cleartext. To rule out a partial match, he rewrote the binding's domains to a value with no relation to either kit. The leak was identical. The recorded list had no effect on where the key went, and after the first approval the operator sees nothing, while the policy log records the connection as allowed and says nothing about a credential being injected.
The fix and what still reaches further
The CVE record scores the flaw 5.6, Medium, under CVSS 4.0 and names incorrect authorization as the weakness, while Endor scored it higher at 8.2 under CVSS 3.1 and 6.9 under 4.0. All thirteen built-in services share the same injection path, though only one was demonstrated. The stolen key is the real one by default, because the secret command stores credentials globally. Some paths held. A mixin kit cannot add an injection domain for a built-in service, impersonation by name is refused, the kit-add command rejects credential-declaring kits, and a run without a terminal declines instead of proceeding.
Docker fixed it in 0.55.0 on 30 November, and the release now enforces the approved destinations at substitution time, treating a binding with no approved destinations as missing. Endor's report lists three further suggestions. Enforce the binding against the kit's inject list, bind the approval to the kit's content digest, and log each injection next to the destination it already logs. Until every machine upgrades, the advice is to open the credential file, remove any binding granted to a third-party kit, and read a kit's inject domains on every create rather than only the first. Exploitation needs a prior approval and a launched modified kit, and no source reports it used in the wild.
Log take
Log take: A consent prompt is only as strong as the binding it writes. Docker showed the operator the right question and then keyed the answer to the wrong thing, a service name instead of the kit that was reviewed. The version swap is the quiet part. Nothing on screen changed between the kit the operator approved and the kit that took the key. Reviewing a kit once is not consent to every update it later ships.
Sources
Research
Semantic neighbors
- Sandboxed until the first semicolon79% similar
- Nobody asked the sandbox controller for a key78% similar
- Allowed to one domain, the key still left76% similar
