Docker Sandboxes flaw could expose AI API keys to malicious updates

Docker Sandboxes, a tool that isolates AI coding agents, was found to leak developers’ API keys when a third‑party kit received a malicious update. The flaw, catalogued as CVE‑2026‑136998, has been patched in version 0.55.0.

How the vulnerability worked

  • Docker records approved domains for a kit when a developer first grants access to an AI service.
  • On later runs it only checks that a binding for the service exists, not the approved domains.
  • An attacker who controls an updated kit can change the destination domain, causing Docker’s proxy to forward the real API key without prompting the developer.
  • The policy log shows a normal permitted request, giving no hint that credentials were injected.

Endor Labs researcher Payton (Peyton) Kennedy demonstrated the issue with a dummy Anthropic key and a test server. The exploit works across 13 built‑in services that share the same credential‑handling code, including major providers such as OpenAI, GitHub and Google.

Why it matters to developers

A stolen AI provider key can lead to unexpected charges on the victim’s account. A compromised GitHub token may expose private repositories if the token’s scope includes repository access. Because the flaw bypasses user prompts, developers may remain unaware until misuse is detected, potentially after significant damage.

Docker’s response

Docker released version 0.55.0 on November 30, adding stricter checks:

  • Credential injection now respects the destinations approved for each service.
  • Bindings without approved destinations are treated as missing, preventing automatic key injection.
  • The fix applies to all 13 affected services, closing the attack surface used in the demonstration.

Docker’s update aligns the runtime behavior with the original security promise that raw keys never enter the sandbox environment.

Practical steps for developers

  • Update immediately: Upgrade Docker Sandboxes to version 0.55.0 or later.
  • Review existing kits: Re‑approve any third‑party kits after the upgrade to ensure the correct domains are recorded.
  • Audit logs: Check recent sbx policy log entries for unexpected allowed connections, especially to unknown hosts.
  • Rotate keys: Regenerate API keys for services listed in the vulnerability (Anthropic, OpenAI, GitHub, etc.) and replace them in Docker’s secret store.
  • Limit scope: Use the minimal required permissions for each token to reduce potential impact if a key is leaked.

What happens next?

Docker has indicated that the fix is included in the latest release and that no active exploitation has been reported. Developers should monitor Docker’s release notes for any further security updates. For Indian readers, teams using Docker Sandboxes in local development or cloud pipelines should apply the patch promptly to avoid unexpected charges or data exposure.


Key takeaways

  • The flaw allowed key leakage without user prompts.
  • It affected 13 AI and developer services.
  • Docker patched the issue in version 0.55.0.
  • Immediate upgrade and key rotation are recommended.

Staying current with security patches remains essential, especially when working with AI services that carry monetary and data‑privacy risks.

Sources

This report is based on information from:

Tags :

Recommended

Leave a Reply

Your email address will not be published. Required fields are marked *