Description
OpenClaw before 2026.4.20 contains an improper environment variable validation vulnerability in MCP stdio server configuration that allows attackers to execute arbitrary code. Malicious workspace configurations can pass dangerous startup variables like NODE_OPTIONS, LD_PRELOAD, or BASH_ENV to spawned MCP server processes, enabling code injection when operators start sessions using those servers.
Metrics
CVSS 3.1 7.3/10
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| OpenClaw | OpenClaw | < 2026.4.20 |
References
- https://github.com/openclaw/openclaw/commit/62fa5071896e95edc7f67d1cebc70a2859e283afPatch
- https://github.com/openclaw/openclaw/commit/85d86ebc4bf3d2226d39d132a484f4f7a299fa1bBroken Link
- https://github.com/openclaw/openclaw/security/advisories/GHSA-mj59-h3q9-ghfhThird Party Advisory
- https://www.vulncheck.com/advisories/openclaw-arbitrary-code-execution-via-mcp-stdio-environment-variablesPatch, Third Party Advisory
Timeline
- Published
- May 11, 2026
- Last modified
- Jun 17, 2026
- NVD status
- Analyzed