{"id":"CVE-2026-120307","state":"PUBLISHED","title":"Beta9 container escape via unvalidated sandbox file paths","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.","publishedAt":"2026-11-01T12:49:51.981Z","updatedAt":"2026-11-02T19:46:38.442Z","severity":{"score":9.9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"JFROG"},"assigner":"JFROG","products":["beam-cloud Beta9 worker"],"affected":[{"vendor":"beam-cloud","product":"Beta9 worker","packageName":"github.com/beam-cloud/beta9","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.1.756","versionType":"semver"}],"collectionURL":"https://github.com/beam-cloud/beta9/releases","repo":"git://github.com/beam-cloud/beta9","programFiles":["pkg/worker/container_server.go","pkg/worker/lifecycle.go","pkg/types/worker.go"]}],"references":["https://github.com/beam-cloud/beta9","https://github.com/beam-cloud/beta9/pull/1897","https://github.com/beam-cloud/beta9/commit/a28bf12cf0007c792a25d8ed282b4e8bf6f30393","https://github.com/beam-cloud/beta9/releases/tag/worker-0.1.756"],"weaknesses":["CWE-22","CWE-23","CWE-59"],"ingestedAt":"2026-11-02T19:56:06.500Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/120xxx/CVE-2026-120307.json","commit":"19d0a0d7e0742032f759b7b35a8ebf5d7dcda3f4","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120307","state":"PUBLISHED","datePublished":"2026-11-01T12:49:51.981Z","dateUpdated":"2026-11-02T19:46:38.442Z","assignerShortName":"JFROG","assignerOrgId":"48a46f29-ae42-4e1d-90dd-c1676c1e5e6d","dateReserved":"2026-11-01T12:45:12.430Z"},"containers":{"cna":{"title":"Beta9 container escape via unvalidated sandbox file paths","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"beam-cloud","product":"Beta9 worker","packageName":"github.com/beam-cloud/beta9","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"0.1.756","versionType":"semver"}],"collectionURL":"https://github.com/beam-cloud/beta9/releases","repo":"git://github.com/beam-cloud/beta9","programFiles":["pkg/worker/container_server.go","pkg/worker/lifecycle.go","pkg/types/worker.go"]}],"references":[{"url":"https://github.com/beam-cloud/beta9","name":"Beta9 repository","tags":["product"]},{"url":"https://github.com/beam-cloud/beta9/pull/1897","name":"Handle sandbox edge cases (fix pull request)","tags":["patch"]},{"url":"https://github.com/beam-cloud/beta9/commit/a28bf12cf0007c792a25d8ed282b4e8bf6f30393","name":"Fix commit a28bf12","tags":["patch"]},{"url":"https://github.com/beam-cloud/beta9/releases/tag/worker-0.1.756","name":"worker-0.1.756","tags":["release-notes"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"Tenant with a workspace token and a running sandbox on a worker that serves the sandbox file API"}],"cvssV3_1":{"version":"3.1","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseSeverity":"CRITICAL","baseScore":9.9,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-23","lang":"en","description":"CWE-23: Relative Path Traversal","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-59","lang":"en","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","type":"CWE"}]}],"providerMetadata":{"shortName":"JFROG","orgId":"48a46f29-ae42-4e1d-90dd-c1676c1e5e6d","dateUpdated":"2026-11-01T12:49:51.981Z"},"solutions":[{"lang":"en","value":"Upgrade the Beta9 worker to 0.1.756 or later. Sandbox file APIs and workspace sync use os.OpenRoot, so parent-directory segments and symbolic links stay inside the container root or the mount source. File operations refuse read-only mounts and do not write through a symlink swapped in after path resolution. The fix is commit a28bf12 (pull request 1897), released as worker-0.1.756 on 2026-09-15.","supportingMedia":[{"type":"text/html","base64":false,"value":"<p>Upgrade the Beta9 worker to 0.1.756 or later. Sandbox file APIs and workspace sync use os.OpenRoot, so parent-directory segments and symbolic links stay inside the container root or the mount source. File operations refuse read-only mounts and do not write through a symlink swapped in after path resolution. The fix is commit a28bf12 (pull request 1897), released as worker-0.1.756 on 2026-09-15.</p>"}]}],"timeline":[{"time":"2026-09-15T04:03:00.000Z","lang":"en","value":"Fix merged in pull request 1897 (commit a28bf12)"},{"time":"2026-09-15T04:03:00.000Z","lang":"en","value":"Fixed release worker-0.1.756 published. No vendor security advisory was filed with the pull request."}],"credits":[{"lang":"en","value":"Natan Nehorai","type":"finder"},{"lang":"en","value":"JFrog Security Research","type":"coordinator"}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 1.0.5"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-02T19:46:03.614684Z","id":"CVE-2026-120307","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-02T19:46:38.442Z"}}]}}}