Patch CVE-2026-136998 in Docker Sandboxes sbx v0.55.0 on Linux
This deep-dive covers cve-2026-136998 docker sandboxes with actionable analysis, practical implications, and expert insights.
Quick answer: To patch CVE-2026-136998 (CVSS 8.2) on Ubuntu or Debian Linux, first migrate any legacy DOCKER_SANDBOXES_* environment variables using sbx settings set, then upgrade the standalone CLI via sudo apt-get update && sudo apt-get install --only-upgrade docker-sbx to v0.55.0 or newer, verify with sbx version, and audit active secrets and policies with sbx secret ls and sbx policy ls.
Disclosed and patched on November 30, 2026, CVE-2026-136998 targets one of the core security promises of Docker Sandboxes (sbx): keeping raw API keys and OAuth tokens on your Linux host while AI coding agents run inside isolated KVM microVMs. Discovered by Endor Labs researcher Peyton Kennedy, the flaw affects sbx versions 0.43.0 up to 0.55.0 (exclusive). Upgrading immediately closes the credential-exfiltration gap, and v0.55.0 also introduces breaking configuration changes that Linux developers need to migrate cleanly before restarting their sandboxes.
If your team already isolates host integrations using our guide to sandboxing local MCP servers on Linux with systemd, patching sbx to v0.55.0 secures the microVM and host-proxy layer right next to it.
How CVE-2026-136998 Bypasses the Host Credential Proxy
Docker Sandboxes isolates AI coding agents such as Claude Code inside a microVM with its own root filesystem and private Docker daemon. Instead of passing raw credentials into the microVM environment, developers store secrets on the host with sbx secret set. A host-side proxy intercepts outbound requests from the sandbox, strips placeholder tokens, and injects the real API key or OAuth token only for approved service domains.
In versions 0.43.0 through 0.54.x, Docker recorded the approved destination domain when a developer initially consented to a third-party agent kit. However, during subsequent proxy substitutions, the runtime checked only whether the service binding had been approved previously rather than enforcing that the destination host still matched the approved domain. A malicious or compromised update to a previously trusted kit could keep the same service binding name while pointing the outbound URL to an attacker-controlled server. Because no second prompt fired, the host proxy injected real OpenAI, Anthropic, or GitHub tokens and logged the outbound connection as a normal allowed request.
Docker Sandboxes v0.55.0 fixes CVE-2026-136998 by strictly enforcing separately approved destinations for API keys and OAuth bindings on kit credential injection, treating any binding without verified approved destinations as missing. Just as GitHub enforced stricter workflow boundaries in the GitHub pull_request_target default block, v0.55.0 also enforces HTTPS-only host credential injection and blocks mounts into sensitive host directories.
Step 1: Migrate Deprecated Environment Variables Before Upgrading
Do not run apt-get install --only-upgrade blindly if you configure sbx via shell profiles or CI environment variables. Docker Sandboxes v0.55.0 stops reading 11 legacy DOCKER_SANDBOXES_* environment variables. If you relied on DOCKER_SANDBOXES_KIT_REQUIRE_SIGNATURE=true without saving it in persistent settings, signature enforcement silently falls back to optional after the upgrade.
Inspect your shell rc files or CI exports, then migrate every active override using sbx settings set <key> <value>:
| Legacy Environment Variable | v0.55.0 sbx settings Key |
|---|---|
DOCKER_SANDBOXES_CLIPBOARD_IMAGE_PASTE | clipboard.imagePaste |
DOCKER_SANDBOXES_KIT_ALLOWED_SOURCES | kit.allowedSources |
DOCKER_SANDBOXES_KIT_ALLOW_LOCAL | kit.allowLocalKits |
DOCKER_SANDBOXES_KIT_IGNORE_TLOG | kit.ignoreTransparencyLog |
DOCKER_SANDBOXES_KIT_REQUIRE_SIGNATURE | kit.requireSignature |
DOCKER_SANDBOXES_KIT_TRUSTED_SIGNERS | kit.trustedSigners |
DOCKER_SANDBOXES_MODEL_PROVIDERS | model.providers |
DOCKER_SANDBOXES_SSH_AUTO_CREATE | ssh.autoCreate |
DOCKER_SANDBOXES_SSH_DEFAULT_AGENT | ssh.defaultAgent |
DOCKER_SANDBOXES_SSH_DEFAULT_TEMPLATE | ssh.defaultTemplate |
DOCKER_SANDBOXES_SSH_WORKSPACE_ROOT | ssh.workspaceRoot |
For example, to enforce signed third-party kits and restrict allowed kit sources before updating:
sbx settings set kit.requireSignature true
sbx settings set kit.allowLocalKits false
sbx settings ls
If you change any ssh.* settings, run sbx daemon restart so the background daemon picks them up. Proxy environment variables (HTTP_PROXY, HTTPS_PROXY, NO_PROXY) and model provider apiKeyEnv references continue to work in v0.55.0.
Step 2: Upgrade or Install Docker Sandboxes v0.55.0 on Ubuntu Linux
On Linux, Docker Sandboxes officially targets Ubuntu 24.04 or later on 64-bit Intel, AMD, or Arm processors. You do not need Docker Engine or Docker Desktop installed on the host to run sbx. If you are weighing host container runtimes alongside microVMs, see our Docker vs Podman rootless security comparison.
First, confirm KVM virtualization and group membership are active for local microVMs:
lsmod | grep kvm
sudo usermod -aG kvm $USER
newgrp kvm
If you already installed docker-sbx from Docker's APT repository, upgrade directly to v0.55.0:
sudo apt-get update
sudo apt-get install --only-upgrade docker-sbx
sbx version
On a fresh Ubuntu 24.04 machine where you want only the standalone sbx CLI without host Docker Engine, add Docker's official APT repository and install docker-sbx:
curl -fsSL https://get.docker.com | sudo REPO_ONLY=1 sh
sudo apt-get update
sudo apt-get install docker-sbx
sbx version
sbx login
Note that Docker does not test or support the convenience script on Ubuntu derivatives such as Linux Mint or Pop!_OS because repository detection can select the wrong upstream codename.
Step 3: Audit Secrets, Custom Headers, and Network Policies
After verifying sbx version reports 0.55.0 or newer, inspect stored credentials and active network policies, especially if you tested third-party agent kits on versions 0.43.0 to 0.54.x:
sbx secret ls --format table
sbx policy ls
sbx diagnose
If you used any third-party kits from unverified registries prior to patching, rotate your sensitive host tokens immediately (GitHub personal access tokens, Anthropic keys, and OpenAI keys) and re-bind them cleanly:
sbx secret set github --command 'gh auth token'
sbx secret set anthropic
Version 0.55.0 also tightens two behaviors around custom secrets and endpoint transport:
- Explicit header binding and 8-character minimum: Custom secrets are injected only into bound headers or the defaults in
secret.custom.defaultHeaders(such asAuthorizationandX-Api-Key), and values shorter than eight characters are no longer substituted. Bind a non-standard header without recreating the secret by finding its placeholder insbx secret lsand running:
sbx secret set-custom --placeholder <PLACEHOLDER> --header X-Custom-Key
- HTTPS enforcement for credential injection: External endpoints must use
https://to receive host-managed API keys, OAuth tokens, registry credentials, or custom secrets. Plain HTTP requests still obey network policy but receive zero secret substitution, and managed OAuth token exchanges over HTTP fail withHTTP 403.
To lock down outbound destinations for new sandboxes non-interactively, initialize a baseline policy or restrict specific hosts:
sbx policy init balanced
sbx policy allow network registry.npmjs.org
sbx policy check registry.npmjs.org
Pairing strict sandbox network policies with systemd service security hardening on Linux gives both your host daemons and AI agents defense-in-depth.
Step 4: Handle v0.55.0 Mount Restrictions and Reclaim Disk Space
Docker Sandboxes v0.55.0 introduces stricter workspace boundaries and new local maintenance commands that save disk space on developer laptops:
- Sensitive host directory blocks: Creating a sandbox from a broad directory such as
$HOMEnow fails if the mount overlaps Sandboxes configuration, state, kit storage, or filesystem credential directories (even read-only). Always launchsbx runinside a dedicated project folder, or if you explicitly require access, setsbx settings set mounts.allowSensitiveState truebefore creating the sandbox. - Removing running sandboxes: Both
sbx rmandsbx env rmnow refuse to delete a running local sandbox. Stop it first withsbx stop <SANDBOX_NAME>, or pass--forceto remove it immediately without confirmation. - Pruning unused local images: Release 0.55.0 adds
sbx template prunealongsidesbx dfso you can preview and reclaim stale image layers without touching active sandboxes:
sbx df --verbose
sbx prune --dry-run
sbx template prune --dry-run
sbx template prune
Troubleshooting Docker Sandboxes v0.55.0 on Linux
If an upgrade or sandbox launch fails on Ubuntu, check these four Linux-specific failure modes first:
- Image pull I/O errors on eCryptfs: If
sbx diagnosereportsstate directory is on eCryptfs, image layer extraction fails with I/O errors. Store sandbox state on an unencrypted ext4 or XFS filesystem (or LUKS-backed ext4) rather than legacy home-directory eCryptfs. - Arm64 builds failing on page size: Some compilers and language toolchains require 4 KB memory pages rather than larger default arm64 host pages. Check inside a sandbox with
sbx exec <SANDBOX_NAME> getconf PAGESIZE, and if needed, recreate the sandbox withsbx create --name <NEW_SANDBOX_NAME> --page-size 4k claude .. - Daemon hangs or version mismatch after apt upgrade: Stream live daemon logs (new in v0.55.0) or restart the host daemon without losing saved sandbox files:
sbx daemon logs --tail 200
sbx daemon logs --follow
sbx daemon restart
- Unresponsive microVM: When
sbx lsshowsrunning (not responding), cycle the sandbox withsbx stop <SANDBOX_NAME>followed bysbx start <SANDBOX_NAME>to preserve your sandbox filesystem while recovering the guest agent.
All terminal commands, code snippets, and configuration parameters in this guide were verified in our testing environment before publication. Adjust configuration paths to match your specific distribution.
Was this technical analysis helpful?
Your feedback informs our benchmark updates and ongoing article audits.
FAQ
Frequently Asked Questions
Structured for search engines and AI answer systems (AEO/GEO).
Docker Sandboxes (sbx) versions 0.43.0 through 0.54.x are affected by CVE-2026-136998 (CVSS 8.2). Upgrading to Docker Sandboxes v0.55.0 or newer (released November 30, 2026) resolves the vulnerability by enforcing strict destination domain validation for kit credential injection.
First migrate any legacy DOCKER_SANDBOXES_* environment variables using sbx settings set <key> <value>. Then run sudo apt-get update && sudo apt-get install --only-upgrade docker-sbx and confirm the patched release with sbx version.
Docker Sandboxes v0.55.0 stops reading 11 legacy configuration environment variables, including kit signature and SSH workspace overrides. Move them into persistent configuration via sbx settings set <key> <value>, and run sbx daemon restart if you updated SSH settings.
Starting in v0.55.0, external endpoints must use HTTPS to receive host-managed API keys, OAuth tokens, registry credentials, or custom secrets. Plain HTTP requests receive no credential substitution, and managed OAuth exchanges over HTTP are rejected with HTTP 403.
More answers in our FAQ hub.
Newsletter
Practical Linux & Applied AI Newsletter
Get new tested tutorials and benchmark comparisons delivered directly to your inbox. Zero spam.
Join Weekly guides readers getting our weekly digest.
- Practical Linux administration & terminal workflows
- Tested open-source AI setups & benchmarks
- Zero spam - unsubscribe anytime