MediumVulnerability
GHSA-m866-6qv5-p2fg: OpenClaw host-env blocklist missing `GIT_TEMPLATE_DIR` and `AWS_CONFIG_FILE` allows code execution via env override
- Identifier
- GHSA-m866-6qv5-p2fg
- Published
- Record updated
- Affected
- openclaw <= 2026.3.24
- Fixed in
- 2026.3.28
- released March 28, 2026, 2 days before disclosure
Summary
The host execution environment sanitization in OpenClaw did not block `GIT_TEMPLATE_DIR` or `AWS_CONFIG_FILE`. An approved exec request could use these variables to redirect git or AWS CLI behavior to attacker-controlled configuration, leading to execution of untrusted code or loading of attacker-selected credentials. Affected versions are `<= 2026.3.24`.
Mitigation
Fixed in `>= 2026.3.28` (latest stable `2026.3.28` contains the fix), via commit `6eb82fba3c` ("Infra: block additional host exec env keys").
Related items
- CriticalGHSA-9x8x-crjq-g64h: Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesSimilar attack · GitHub Advisory Database
- HighGHSA-24pw-rf5p-mgp7: Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP modeSimilar attack · GitHub Advisory Database
- HighGHSA-m932-63jc-4jqq: k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool executionSimilar attack · GitHub Advisory Database
- HighGHSA-3mgh-93r5-r7jf: CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCESimilar attack · GitHub Advisory Database
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSimilar attack · GitHub Advisory Database