Beta9 workerのビルド隔離を破られる脆弱性、修正版あり
Summary
Beta9のビルド用workerで、テナントが画像ビルドを1回依頼するだけでworkerのコンテナ側に出られる脆弱性が公表されました。複数のテナントにBeta9を使わせている環境は、worker 0.1.756へ更新し、ビルド権限の範囲も見直してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
Beta9のビルド用workerで、テナントが画像ビルドを1回依頼するだけでworkerのコンテナ側に出られる脆弱性が公表されました。複数のテナントにBeta9を使わせている環境は、worker 0.1.756へ更新し、ビルド権限の範囲も見直してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| beam-cloud | Beta9 worker |
< 0.1.756 |
0.1.756 |
Original description The description as published by the source.
Beta9 turns each shell command in a tenant image definition into a Dockerfile RUN line and executes it with Buildah on the build worker. The worker image sets BUILDAH_ISOLATION=chroot, and no buildah invocation passes --isolation, so the step only changes its filesystem root. It keeps the worker pod's PID, network, IPC, and user namespaces, runs as uid 0, and holds CAP_DAC_OVERRIDE. PID 1 in that procfs is the worker entrypoint, so /proc/1/root is the worker container's filesystem and is writable. That filesystem contains the runc, buildah, and runsc binaries the worker uses to start tenant containers, the worker's Kubernetes service account token, and the host directories mounted into the pod. Worker pods are privileged. Clip v2 layered builds are the default, so a tenant with a workspace token reaches this by submitting one image build. The read-only proof confirmed the shared namespaces, CAP_DAC_OVERRIDE, and that the worker's runc binary is visible at /proc/1/root. Fixed in worker 0.1.756: Buildah RUN steps, including the WORKDIR mkdir, use OCI isolation with private PID, IPC, and network namespaces, and tenant ARG values are passed only into the build container.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- package github.com
- package github.com
- patch github.com
- patch github.com
- web github.com