NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-41369: OpenClaw: Host exec environment sanitization misses package, registry, Docker, compiler, and TLS override variables

highCVSS 4.0 7.1 · 3.1 6.5GHSA-cg7q-fg22-4g98

OpenClaw up to 2026.3.28 sanitizes the environment for host command execution with an incomplete blocklist. Package manager, registry, Docker, compiler include and TLS trust variables could still be overridden for host commands. This can redirect downloads or weaken TLS checks. Fixed in 2026.3.31.

Published Apr 3, 2026 · Updated May 6, 2026 · Analysis Oct 30, 2026

What an attacker can do

OpenClaw filters environment variable overrides before it runs commands on the host. The filter is a blocklist of dangerous names, and it missed a whole family of variables that change where tools fetch code from or whom they trust. The fix commit adds 26 names, including PIP_FIND_LINKS, PIP_CONFIG_FILE, PIP_TRUSTED_HOST, GOPROXY, GOPATH, GOENV, DOCKER_HOST, DOCKER_CONTEXT, CPATH, LIBRARY_PATH, NODE_EXTRA_CA_CERTS, SSL_CERT_FILE, REQUESTS_CA_BUNDLE, CURL_CA_BUNDLE, PYTHONUSERBASE and VIRTUAL_ENV.

An attacker who can influence the environment passed to a host exec call can, for example, point pip or Go at a server they control, add their own CA to the trust store, or aim the Docker client at a remote daemon. The next package install or request then pulls attacker content or accepts forged certificates.

The maintainers rate it medium. The CVSS vector requires low privileges and gives high confidentiality impact only. The attacker needs a way to set environment overrides on host exec requests.

Who is affected

The npm package openclaw, versions 2026.3.28 and earlier. The maintainers confirmed that v2026.3.28 misses the broader package, registry, compiler, Docker and TLS variable family. Check the version:

npm ls openclaw
openclaw --version

openclaw

Ecosystem
npm
Affected
<= 2026.3.28
Fixed in
2026.3.31
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.31, the first stable tag that includes the fix.

npm install -g [email protected]

The commit extends the host environment security policy in src/infra/host-env-security-policy.json and the generated macOS policy file with the new names. Matching is case-insensitive, so lowercase variants are blocked too. The sources list no workaround.

How to tell if you were hit

Review the history of host exec calls for environment overrides that set PIP_*, GOPROXY, GOPATH, DOCKER_HOST, SSL_CERT_FILE, NODE_EXTRA_CA_CERTS, REQUESTS_CA_BUNDLE or similar names. Check package manager and shell configuration for unexpected index URLs, proxies and CA bundle paths, and look for packages installed from unfamiliar sources. Beam records the shell commands an agent runs, and its rules can flag commands that set these variables.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Host exec environment sanitization misses package, registry, Docker, compiler, and TLS override variables

Current Maintainer Triage

  • Normalized severity: medium
  • Assessment: v2026.3.28 also misses the broader package, registry, compiler, Docker, and TLS env family in the shipped host-env policy, and the unreleased main fix means this is a real medium-severity open issue.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published npm version: 2026.3.31
  • Vulnerable version range: <=2026.3.28
  • Patched versions: >= 2026.3.31
  • First stable tag containing the fix: v2026.3.31

Fix Commit(s)

  • eb8de6715f02949c21c4e895fffc8a6dcb00975c — 2026-03-31T19:37:43+09:00

OpenClaw thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Which OpenClaw version fixes the incomplete env blocklist?

2026.3.31. Versions up to and including 2026.3.28 are affected. The fix commit is eb8de67.

Which variables are newly blocked?

26 names across pip, Docker, compiler paths, CA certificate settings, Go and Python environments, such as PIP_FIND_LINKS, DOCKER_HOST, CPATH, SSL_CERT_FILE, GOPROXY and VIRTUAL_ENV.

How serious is it?

The maintainers rate it medium. CVSS 3.1 is 6.5, with high confidentiality impact and no integrity or availability impact, and low privileges required.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More OpenClaw vulnerabilities

All OpenClaw entries