Skip to content
MediumVulnerability

GHSA-m866-6qv5-p2fg: OpenClaw host-env blocklist missing `GIT_TEMPLATE_DIR` and `AWS_CONFIG_FILE` allows code execution via env override

Published
Record updated
View JSON
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").