OpenClaw Gateway Config Mutation Guard Bypass (CVE-2026-45001)
OpenClaw before 2026.4.20 contains a guard bypass vulnerability in the agent-facing gateway config.patch and config.apply endpoints, allowing a prompt-injected model with access to the owner-only gateway tool to persist unauthorized changes to protected operator settings.
OpenClaw before version 2026.4.20 is vulnerable to a guard bypass in its agent-facing gateway. The vulnerability resides in the config.patch and config.apply endpoints. This flaw allows a prompt-injected model that has access to the owner-only gateway tool to bypass intended restrictions. By exploiting this vulnerability, an attacker can modify operator-trusted settings, which includes sandbox policy, plugin enablement, gateway authentication and TLS configuration, hook routing, MCP server configuration, SSRF policy, and filesystem hardening measures. This bypass could lead to significant compromise of the OpenClaw environment, enabling unauthorized access and control.
Attack Chain
- An attacker gains initial access to an OpenClaw system.
- The attacker identifies a prompt injection vulnerability within a model accessible to the gateway tool.
- The attacker crafts a malicious prompt that exploits the injection vulnerability.
- The attacker uses the compromised model to access the owner-only gateway tool.
- The attacker leverages the
config.patchorconfig.applyendpoints to submit unauthorized configuration changes. - The bypassed guard allows the unauthorized configuration changes to persist.
- The attacker modifies critical settings such as sandbox policy, plugin enablement, or gateway authentication.
- The attacker establishes persistent control over the OpenClaw environment, potentially leading to data exfiltration or further attacks.
Impact
Successful exploitation of CVE-2026-45001 can lead to a complete compromise of the OpenClaw environment. Attackers can modify security policies, enable malicious plugins, bypass authentication mechanisms, and reconfigure server settings. The consequences include unauthorized access to sensitive data, the introduction of malicious functionality, and the potential for lateral movement to other systems.
Recommendation
- Upgrade OpenClaw to version 2026.4.20 or later to patch CVE-2026-45001.
- Implement the Sigma rule "Detect OpenClaw Unauthorized Configuration Change via config.patch/config.apply" to identify potential exploitation attempts based on HTTP endpoint access.
- Enforce strict access controls to the owner-only gateway tool, limiting access to authorized personnel only.
Detection coverage 2
Detect OpenClaw Unauthorized Configuration Change via config.patch/config.apply
highDetects CVE-2026-45001 exploitation - HTTP POST to config.patch or config.apply endpoints indicating potential unauthorized configuration changes
Detect OpenClaw Gateway Tool Access
mediumDetects access to the OpenClaw gateway tool, which is required for exploiting CVE-2026-45001.
Detection queries are available on the platform. Get full rules →