← All notes

AnalysisAct

The VM held. The API handed over the host.

A sandbox built for AI agents put every tenant in its own MicroVM, then let any tenant name a directory on the host and have it mounted inside, as root, read-write. No escape was needed. The isolation was decided one layer up, in a metadata field.

Published
Topics
AI agent security · Sandboxing · Multi-tenancy · Control plane · CVE · CWE
0kernel or hypervisor flaws needed to reach the host, according to the CVE record

When people judge a sandbox for AI agents, they look at the wall: containers or MicroVMs, which hypervisor, how small the guest kernel is. That is the part that gets audited and benchmarked. This week's record is a reminder that the wall is only half of isolation. The other half is whoever decides what goes through it.

Nobody broke out

CubeSandbox puts each tenant in its own MicroVM. Nothing in this flaw defeats that. The guest kernel held, the hypervisor held, and the record says so in as many words. The tenant did not escape the box. The tenant asked the control plane to put the host inside the box, and the control plane did it.

That is a different failure from the ones sandbox reviews are designed to find. An escape needs a memory-safety bug in a small, hardened component. This needed one field in a create request. Every guarantee the MicroVM makes is a guarantee about what the guest can reach on its own. None of them covers what the orchestrator hands it on the way in.

Metadata is not a label if it moves the host

The field was called metadata. In most APIs metadata is decoration: tags, owner names, a cost centre, things the platform stores and returns. Here one key in it was lifted into an instruction to a privileged node agent, which then ran mount as root. The name told every reviewer it was harmless. The code path made it the most powerful input in the request.

CubeMaster, hostdir_mount.go, v0.5.0 vs v0.5.1, trimmed
v0.5.0, the whole check:
  if !strings.HasPrefix(o.HostPath, "/") { ... }

v0.5.1, added:
  cleaned, err := validateHostPath(o.HostPath)
  // accepted only under allowed_host_mount_prefixes,
  // default "/data/shared/"

Before the fix, the only question asked of a host path was whether it began with a slash. Every path on a Linux host does.

The fix guards one door

The patch is sound as far as it goes: an allowlist of prefixes, a safe default, and a refusal to start if an operator configures the root. But it lives entirely in the control plane. The node agent that performs the mount did not change between the two releases. It still mounts whatever it is told to, and trusts that the layer above asked the right question.

That is a common shape, and it is worth naming. A privileged component that does exactly what it is told is only as safe as every path that can tell it something. Today that is one API handler. If a second entry point ever reaches the same agent, the check has to be remembered there too. A boundary that only exists upstream is a boundary somebody can route around later without noticing.

Trust is the attack surface

Agent sandboxes exist because the code inside them is untrusted by design: a model wrote it, often after reading something an attacker wrote. The tenant who calls the API deserves the same suspicion as the code it runs. If a create request can choose what the host exposes, then the isolation is not a property of the VM. It is a property of the request, and the request belongs to the person you were isolating.

What to actually do

  • Upgrade CubeSandbox to 0.5.1 or later. Then set allowed_host_mount_prefixes deliberately rather than relying on the default, and keep it to directories created for sharing.
  • Audit what already ran. If tenants you do not fully trust could create sandboxes on an affected version, look for host-mount values outside your shared directories in the CubeMaster logs, which record the raw annotation.
  • Read your sandbox's create API as an attack surface. For any agent sandbox, list every request field that reaches a privileged agent: mounts, devices, networks, capabilities, images. Each one is a way through the wall that the wall cannot see.
  • Ask for the check where the privilege is. The component that runs mount as root should refuse paths outside its own allowlist, whatever the control plane says. Defence at one layer is a single point of failure.
  • Treat "metadata" fields with suspicion. A free-form key-value map that some component interprets is a configuration channel. Review it as one.

E/01What is confirmed
  • CVE-2026-120699, assigned by GitHub and published 16 November 2026 against TencentCloud CubeSandbox, which describes itself as a sandbox for AI agents. Affected: versions before 0.5.1. Fixed in 0.5.1.
  • Per the record, any authenticated tenant permitted to call POST /sandboxes could supply metadata["host-mount"] with an arbitrary existing host path, because the control plane performed no authorization check or allowed-prefix validation. Cubelet then made a recursive bind mount of that path as root and exposed it to the tenant's MicroVM through virtio-fs, read-write by default.
  • Per the record, the result is host-root file access and modification, host code execution, access to the container runtime and compromise of co-resident tenants, without a kernel or virtual-machine-monitor flaw.
  • Weaknesses on CVE-2026-120699: CWE-22, path traversal; CWE-269, improper privilege management; CWE-284, improper access control.
  • GitHub's score on CVE-2026-120699: CVSS 4.0 base 9.4, network, low complexity, low privileges, no user interaction, high impact on the vulnerable system and on subsequent systems.
  • CISA's SSVC entry on the record: exploitation none, automatable no, technical impact total.
  • NVD status on 18 November 2026: Received, with no NVD score of its own.
  • In CubeMaster/pkg/service/sandbox/hostdir_mount.go at v0.5.0, injectHostDirMounts checks only that hostPath and mountPath are absolute. At v0.5.1 it also calls validateHostPath, which applies filepath.Clean and accepts the path only if it starts with a configured prefix.
  • Per the v0.5.1 configuration code and README, the allowed prefixes come from allowed_host_mount_prefixes, default to /data/shared/ when unset, and CubeMaster refuses to start if an entry is / or not absolute. The README example paths moved from /tmp to /data/shared.
  • Cubelet/storage/hostdir.go, the node-side code that runs mount --rbind, is byte-for-byte identical at v0.5.0 and v0.5.1. The fix is entirely in the control plane.
E/02What we do not yet know
  • Whether the flaw has been exploited. CISA records exploitation as none, and we hold no telemetry: our public sensor is offline.
  • How many CubeSandbox deployments are multi-tenant, or expose sandbox creation to callers the operator does not fully trust. Nobody has published deployment counts.
  • When 0.5.1 was released, and what the maintainers' own GitHub advisory adds to the CVE record. GitHub was out of reach from our tooling and the advisory has no OSV mirror, so nothing here rests on it.
  • Whether a symlink inside an allowed prefix can point a mount elsewhere. The v0.5.1 check we read is lexical, filepath.Clean with no symlink resolution; the record does not address it and we did not test it.
  • We did not reproduce the flaw. Everything here rests on the CVE record and the source at the tags named in the ledger.

E/03Sources
  1. 01CVE-2026-120699 ↗NIST NVD · Primary
  2. 02CVE-2026-120699 record ↗CVE Program · Primary
  3. 03CubeMaster host-mount injection at v0.5.0 ↗TencentCloud/CubeSandbox on GitHub · Primary
  4. 04CubeMaster host-mount injection at v0.5.1 ↗TencentCloud/CubeSandbox on GitHub · Primary
  5. 05Cubelet host directory volumes at v0.5.1 ↗TencentCloud/CubeSandbox on GitHub · Primary
  6. 06Host-mount example README at v0.5.1 ↗TencentCloud/CubeSandbox on GitHub · Primary

Work with us

Running agents, copilots or MCP servers in production? We review that stack the way this note reads a flaw: what an attacker can actually reach, with a reproduction for every finding and the fixes ranked by exploitability.