{"id":"CVE-2026-120307","aliases":["CVE-2026-120307"],"related":[],"kind":"vulnerability","state":"published","title":"Beta9 container escape via unvalidated sandbox file paths","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-01T12:49:51.981Z","modified":"2026-11-02T20:17:40.340Z","severity":{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},"severities":[{"scorer":"JFROG","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-22","CWE-23","CWE-59"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.1.756","status":"affected"}],"vendor":"beam-cloud","product":"Beta9 worker","package":"github.com/beam-cloud/beta9","repo":"git://github.com/beam-cloud/beta9","source":"cvelist"}],"references":[{"url":"https://github.com/beam-cloud/beta9","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://github.com/beam-cloud/beta9/pull/1897","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/beam-cloud/beta9/commit/a28bf12cf0007c792a25d8ed282b4e8bf6f30393","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/beam-cloud/beta9/releases/tag/worker-0.1.756","tags":["release-notes"],"sources":["cvelist","nvd"]}],"credits":["Natan Nehorai","JFrog Security Research"],"assigner":"JFROG","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-02T19:46:03.614Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-120307","url":"https://www.cve.org/CVERecord?id=CVE-2026-120307","licence":"CVE Terms of Use","modified":"2026-11-02T19:46:38.442Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-120307","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120307","licence":"Public domain","modified":"2026-11-02T20:17:40.340Z"}],"updatedAt":"2026-11-25T22:59:48.099Z","epss":{"score":0.00485,"percentile":0.43438,"date":"2026-12-01T12:00:22.000Z"}}