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.

