CVE-2026-41330: OpenClaw: Host exec environment overrides miss proxy, TLS, Docker, and Git TLS controls
OpenClaw 2026.3.28 and earlier do not block proxy, TLS, Docker and Git TLS environment variables in host exec overrides. A caller that can set environment overrides for host commands can redirect traffic through its own proxy or weaken certificate checks. Upgrade to openclaw 2026.3.31.
Published Apr 3, 2026 · Updated Apr 24, 2026 · Analysis Oct 30, 2026
What an attacker can do
OpenClaw runs commands on the host for the agent, and it lets callers and skill configs pass environment overrides to those commands. A host env security policy lists variables that must be refused. That list missed several groups:
- Proxy: HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, NO_PROXY
- TLS and CA: NODE_TLS_REJECT_UNAUTHORIZED, NODE_EXTRA_CA_CERTS, SSL_CERT_FILE, SSL_CERT_DIR, REQUESTS_CA_BUNDLE, CURL_CA_BUNDLE
- Docker: DOCKER_HOST, DOCKER_TLS_VERIFY, DOCKER_CERT_PATH
- Git TLS: GIT_SSL_NO_VERIFY, GIT_SSL_CAINFO, GIT_SSL_CAPATH
An attacker who can influence an override, such as a crafted skill config or a prompt that steers the agent, can set one of these. A command like curl, git, npm or docker then sends its traffic through the attacker's proxy, trusts the attacker's CA, skips certificate checks, or talks to a Docker daemon the attacker chose. The attacker can read or change what those commands send and receive, such as tokens and downloaded code. The CVSS vector is local with low privileges and low confidentiality and integrity impact, and the maintainers rate it medium.
Who is affected
The npm package openclaw at 2026.3.28 and earlier. The first stable release with the fix is 2026.3.31. The maintainers confirmed the gap in shipped v2026.3.28.
Check your install:
npm ls -g openclaw
openclaw --versionThe exposure is greatest where skill configs or agent-supplied overrides can set environment variables for host exec.
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 or later.
npm install -g [email protected]The fix, commit 4d912e04, adds the variables above to src/infra/host-env-security-policy.json and to the generated macOS policy. In src/agents/skills/env-overrides.ts, isAlwaysBlockedSkillEnvKey now calls a new isDangerousHostEnvOverrideVarName check, so skill config overrides for these keys are rejected. Trusted inherited values are kept; only overrides are blocked. The advisory lists no workaround.
How to tell if you were hit
Review skill configs and any saved exec settings for env entries that set the variables listed above, especially proxy hosts or CA files you do not recognize. Check your proxy and network logs for traffic from the OpenClaw host to an unexpected proxy. Look in shell history and agent command logs for commands run with HTTPS_PROXY, GIT_SSL_NO_VERIFY or DOCKER_HOST set inline. After upgrading, a rejected override should appear as a blocked key in the exec result.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Host exec environment overrides miss proxy, TLS, Docker, and Git TLS controls
Current Maintainer Triage
- Status: open
- Normalized severity: medium
- Assessment: Real in shipped v2026.3.28: host exec env policy still missed proxy, TLS, Docker, and Git TLS variables until 4d912e0451 on 2026-03-31; maintainers already accepted it and the fix is unreleased.
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)
4d912e04519b4bd53b248437c53748cdebce9a41— 2026-03-31T21:25:36+09:00
OpenClaw thanks @AntAISecurityLab for reporting.
Credited to AntAISecurityLab.
Questions
- Which OpenClaw versions are affected by CVE-2026-41330?
2026.3.28 and earlier. The fixed version is 2026.3.31.
- Does this give remote code execution?
Not by itself. The advisory scores low confidentiality and integrity impact with local access and low privileges. The risk is redirected or weakened network traffic from host commands.
- Is it exploited in the wild?
No source I read says so, and the entry has no CISA KEV flag. The EPSS score is about 0.2%.
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 entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
