Code Injection in OpenClaw - #VU127887
Published: April 25, 2026
OpenClaw
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper control of code generation in the bundled plugin setup resolver when resolving provider setup metadata from an attacker-controlled current working directory. A remote attacker can place a crafted setup-api.js file in extensions//setup-api.js and trick the victim into running an OpenClaw command from that directory to execute arbitrary code.
User interaction is required to run OpenClaw from a directory containing the attacker-controlled setup file.