/

CVE-2026-120308

Severity:

CRITICAL RISK

(9.9)

Path Traversal (CWE-22) in Beta9 Volume Mounting Bug

CVE-2026-120308

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22, CWE-668

Impact:

Cross-tenant filesystem access and modification

Severity:

CRITICAL RISK

(9.9)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Beta9's volume-mounting flow can let a workspace tenant mount a path outside the workspace's shared volume area by supplying an unchecked volume identifier. When the worker mounts that path read-write into a sandbox, the tenant may access or modify files on the worker, including volumes belonging to other tenants.

Beta9's volume-mounting flow can let a workspace tenant mount a path outside the workspace's shared volume area by supplying an unchecked volume identifier. When the worker mounts that path read-write into a sandbox, the tenant may access or modify files on the worker, including volumes belonging to other tenants.

Affected context

The issue occurs in Beta9 deployments where a tenant can deploy a function, endpoint, or task queue with a volume specified in stub configuration. The gateway constructs a host path from the shared volumes root, workspace name, and volume identifier, while the worker bind-mounts the resulting path into the sandbox. Risk arises when the identifier is not checked against workspace ownership and path boundaries before mounting; previously saved stubs may also need validation.

The issue occurs in Beta9 deployments where a tenant can deploy a function, endpoint, or task queue with a volume specified in stub configuration. The gateway constructs a host path from the shared volumes root, workspace name, and volume identifier, while the worker bind-mounts the resulting path into the sandbox. Risk arises when the identifier is not checked against workspace ownership and path boundaries before mounting; previously saved stubs may also need validation.

Exploit preconditions

  • Attack surface: The deployment flow for functions, endpoints, or task queues that supports volume mounts.
  • Required access: A workspace token with permission to deploy or configure a workload.
  • Trigger point: The gateway processes stub configuration and the worker creates the bind mount.
  • Why exploitation is possible: An unchecked volume identifier can resolve outside the workspace's volume directory, and the resulting host path may be mounted read-write unless explicitly marked read-only.
  • Attack surface: The deployment flow for functions, endpoints, or task queues that supports volume mounts.
  • Required access: A workspace token with permission to deploy or configure a workload.
  • Trigger point: The gateway processes stub configuration and the worker creates the bind mount.
  • Why exploitation is possible: An unchecked volume identifier can resolve outside the workspace's volume directory, and the resulting host path may be mounted read-write unless explicitly marked read-only.

Why this happens

The gateway joins a trusted directory with a workspace name and an untrusted volume identifier without ensuring the resolved path remains within the intended workspace boundary. Parent-directory segments can escape that boundary, matching CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). Allowing a tenant-controlled mount to expose worker files also relates to CWE-668: Exposure of Resource to Wrong Sphere.

The gateway joins a trusted directory with a workspace name and an untrusted volume identifier without ensuring the resolved path remains within the intended workspace boundary. Parent-directory segments can escape that boundary, matching CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). Allowing a tenant-controlled mount to expose worker files also relates to CWE-668: Exposure of Resource to Wrong Sphere.

Potential impact

  • A tenant may read files accessible to the worker.
  • A tenant may modify or overwrite worker files when the mount is read-write.
  • Other tenants' volumes on the same machine could be exposed or altered.
  • Compromised worker data or files may affect workloads that rely on them.
  • A tenant may read files accessible to the worker.
  • A tenant may modify or overwrite worker files when the mount is read-write.
  • Other tenants' volumes on the same machine could be exposed or altered.
  • Compromised worker data or files may affect workloads that rely on them.

General mitigation guidance

Defensive patterns focus on enforcing ownership and filesystem boundaries before any mount is created:

  • Resolve and canonicalize candidate paths, then verify they remain inside the workspace's permitted volume directory.
  • Accept only volume identifiers that correspond to existing volumes owned by the requesting workspace.
  • Apply the same validation to saved configuration and newly submitted configuration.
  • Prefer read-only mounts when write access is not required, and limit worker filesystem privileges.
  • Reduce trust in tenant-controlled path components by using server-side identifiers and tightly scoped mount roots.

Defensive patterns focus on enforcing ownership and filesystem boundaries before any mount is created:

  • Resolve and canonicalize candidate paths, then verify they remain inside the workspace's permitted volume directory.
  • Accept only volume identifiers that correspond to existing volumes owned by the requesting workspace.
  • Apply the same validation to saved configuration and newly submitted configuration.
  • Prefer read-only mounts when write access is not required, and limit worker filesystem privileges.
  • Reduce trust in tenant-controlled path components by using server-side identifiers and tightly scoped mount roots.

How teams detect issues like this

  • Use static analysis to identify path joins involving user- or tenant-controlled values that lack canonicalization and containment checks.
  • Review code paths from deployment configuration through gateway path construction to worker mount creation.
  • Audit mount requests for paths outside approved workspace roots, unexpected ownership, or writable access where it is not required.
  • Enforce policies that restrict workload mounts to approved directories and require workspace ownership checks.
  • Include validation tests for traversal inputs and previously stored stubs in automated security reviews.
  • Use static analysis to identify path joins involving user- or tenant-controlled values that lack canonicalization and containment checks.
  • Review code paths from deployment configuration through gateway path construction to worker mount creation.
  • Audit mount requests for paths outside approved workspace roots, unexpected ownership, or writable access where it is not required.
  • Enforce policies that restrict workload mounts to approved directories and require workspace ownership checks.
  • Include validation tests for traversal inputs and previously stored stubs in automated security reviews.

Sources

SourceLink
github.comgithub.com/beam-cloud/beta9
github.comgithub.com/beam-cloud/beta9/commit/a28bf12cf0007c792a25d8ed282b4e8bf6f30393
github.comgithub.com/beam-cloud/beta9/pull/1897
github.comgithub.com/beam-cloud/beta9/releases/tag/gateway-0.1.769
github.comgithub.com/beam-cloud/beta9/releases/tag/gateway-0.1.776
github.comgithub.com/beam-cloud/beta9/releases/tag/worker-0.1.745
github.comgithub.com/beam-cloud/beta9/releases/tag/worker-0.1.756

Frequently asked

questions

A tenant with a workspace token and permission to deploy a workload with a volume can potentially trigger the vulnerable mount flow.

No direct host access is described as necessary; the relevant access is the ability to submit deployment or stub configuration that the gateway processes.

Validate that each volume exists and belongs to the workspace, and ensure the canonical mount path stays within an approved directory before creating the mount.

Treat tenant-controlled path components as untrusted, enforce ownership and path-containment checks for both new and stored configuration, and restrict mounts and worker privileges to the minimum required.

A tenant with a workspace token and permission to deploy a workload with a volume can potentially trigger the vulnerable mount flow.

No direct host access is described as necessary; the relevant access is the ability to submit deployment or stub configuration that the gateway processes.

Validate that each volume exists and belongs to the workspace, and ensure the canonical mount path stays within an approved directory before creating the mount.

Treat tenant-controlled path components as untrusted, enforce ownership and path-containment checks for both new and stored configuration, and restrict mounts and worker privileges to the minimum required.

Find out what's already
exploitable in your codebase.