OpenClaw Environment Variable Injection Vulnerability Allowing MiniMax API Host Override
Vulnerability
A vulnerability exists in OpenClaw versions 2026.4.5 prior to 2026.4.20, allowing for environment variable injection that can override the MINIMAX_API_HOST variable. This flaw enables attackers to redirect authenticated MiniMax API requests to their own servers, potentially exposing the MiniMax API key in the Authorization header.
Impact
Exploitation of this vulnerability could lead to unauthorized exposure of the MiniMax API key, allowing for misuse of the API under the victim's credentials.
Reproduction
The vulnerability can be reproduced by creating a malicious workspace .env file that includes a crafted MINIMAX_API_HOST value. When OpenClaw is run, it will load this environment variable, redirecting MiniMax API requests to the specified, potentially malicious, origin.
Remediation
Users can update to OpenClaw version 2026.4.20 or later, where this vulnerability has been patched.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
