Openclaw cli: OpenClaw has multiple E2E/test Dockerfiles that run all processes as root
Description
Several Dockerfiles used for end-to-end (E2E) testing and installation in the OpenClaw CLI project run all processes as root due to the absence of a USER directive. This allows processes inside these containers to run with uid 0, increasing the risk of container breakout if compromised. While some Dockerfiles (sandbox and sandbox-browser) have been partially fixed by adding a non-root user, the E2E/test Dockerfiles remain unpatched. The base images used default to root, and the affected Dockerfiles include scripts/e2e/Dockerfile, scripts/e2e/Dockerfile.qr-import, and scripts/docker/install-sh-e2e/Dockerfile. Remediation involves adding a USER directive to run processes as a non-root user.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The OpenClaw CLI project has multiple Dockerfiles for E2E and test environments that lack a USER directive, causing all container processes to run as root (uid 0). This condition increases the risk of container breakout by enabling attackers who compromise a process inside the container to gain root privileges. The base images node:22-bookworm and node:22-bookworm-slim default to root. A partial fix was applied on 2026-02-08 to Dockerfile.sandbox and Dockerfile.sandbox-browser by adding a USER sandbox, but the E2E/test Dockerfiles remain vulnerable. The recommended remediation is to add a non-root user directive before CMD or ENTRYPOINT in each affected Dockerfile.
Potential Impact
Running processes as root inside containers allows attackers who compromise any process to operate with root privileges within the container. This facilitates kernel exploit attempts, abuse of volume mounts, and privileged syscall access, significantly increasing the risk of container breakout. Since test images share the same base as production images, there is a risk of accidentally deploying root-running images into production environments.
Mitigation Recommendations
A patch is available. The vendor partially remediated the issue by adding a USER directive to Dockerfile.sandbox and Dockerfile.sandbox-browser. The remaining affected Dockerfiles should be updated to include a USER directive that creates and switches to a non-root user before CMD or ENTRYPOINT. Specifically, add commands such as 'RUN useradd --create-home --shell /bin/bash appuser' and 'USER appuser' to the Dockerfiles. This reduces the risk by preventing processes from running as root inside the container.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-GHSA-w7j5-j98m-w679
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6ac2458012601ec6a316406b
Added to database: 10/04/2026, 12:24:32 UTC
Last enriched: 10/04/2026, 12:29:24 UTC
Last updated: 10/04/2026, 12:29:24 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.