Skip to main content

Openclaw cli: OpenClaw has multiple E2E/test Dockerfiles that run all processes as root

0
High
Published: 08/13/2026 (08/13/2026, 17:21:32 UTC)
Source: GCVE Database
Product: openclaw-cli

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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
High
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H

Affected software

Homebrewmore threats →ghsa
openclaw-cli
pkg:brew/openclaw-cli
Affected versions
<2026.7.1

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

AILast updated: 10/04/2026, 12:29:24 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses