Skip to main content
← Vulnerabilities

Beta9 container escape via unvalidated sandbox file paths

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

Published
Last modified
Published
Not listed in CISA KEV
13/100 · provisional
Fix
Fixed in 0.1.756
None on Exploit-DB, Metasploit or GitHub
On X
View the cve.now post

Summary

Beta9's worker sandbox file API lets a tenant with a workspace token and one running sandbox escape the container and read, write, list, and delete files on the host worker as root, including other tenants' files. In deployments using the shipped remote-node manifests, this can also expose the worker's Kubernetes service account token, which is bound to cluster-admin.

Read the original description

The Beta9 worker serves the sandbox file API from outside the container. getHostPathFromContainerPath turns the tenant's container path into a worker path. If the unresolved path starts with a mount destination, including the default upload mount at /tmp/.beta9, the remainder is joined onto that mount's source with filepath.Join, which cleans parent-directory segments after the prefix check. A long enough run of those segments names any absolute path on the worker. A path that matches no mount is joined onto the container root and opened in the worker's own filesystem, so an absolute symbolic link such as /var/run pointing at /run is followed against the worker root. Upload, download, stat, list, find-in-files, replace-in-files, and delete-file all call this helper. A tenant with a workspace token and one running sandbox can read, write, list, and delete files on the hosting worker as root, including files of other tenants on that machine. A read-only proof downloaded the worker pod's Kubernetes service account token through the file API for a path that did not exist inside the sandbox. In the shipped remote-node manifests that service account is bound to cluster-admin. Fixed in worker 0.1.756: sandbox file operations and workspace sync open paths with os.OpenRoot, so parent-directory and symlink lookups stay inside the container root or the mount source.

What to do

  • Upgrade to a fixed version: 0.1.756.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. Posted on X by cve.now

Affected versions

  • github.com/beam-cloud/beta9

    fixed in 0.1.756

Evidence 4

  1. Patch
  2. Patch
  3. Repository
  4. Repository

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.