CVE-2026-25593: OpenClaw vulnerable to Unauthenticated Local RCE via WebSocket config.apply
OpenClaw before 2026.1.20 lets an unauthenticated local client write configuration through the Gateway WebSocket API's config.apply method. By setting an unsafe cliPath value, the client gets command injection as the user running the gateway. Upgrade to openclaw 2026.1.20.
Published Feb 4, 2026 · Updated Feb 6, 2026 · Analysis Nov 1, 2026
What an attacker can do
Three weaknesses chain together. The Gateway WebSocket method config.apply takes raw JSON and writes it to disk after schema validation only. It required no authentication. The cliPath setting was not limited to safe executable names or paths. Later, when OpenClaw looked up executables (command discovery), it did so through a shell invocation, so a cliPath containing shell syntax ran as a command.
The attacker needs to run a process on the same machine as the gateway. No credentials and no user action are needed, which matches the local, no-privileges vector. Any commands then run as the gateway process user, with that user's files, tokens and connected channel credentials.
In practice, the risk is on shared hosts, on developer machines where untrusted code runs next to OpenClaw (a dependency script, a compromised extension, another agent), and anywhere the gateway socket is not protected by gateway.auth. A low-privilege local foothold becomes execution as the gateway user.
Who is affected
The npm package openclaw, all versions before 2026.1.20. The gateway is exposed when gateway.auth is not set. Custom cliPath values in the configuration are worth checking whether or not you upgrade. Check the installed version:
npm ls -g openclawor run openclaw --version if the CLI is on your path.
openclaw
- Ecosystem
- npm
- Affected
- < 2026.1.20
- Fixed in
- 2026.1.20
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.1.20 or later. The advisory names fix commit 9dbc1435a6cac576d5fd71f4e4bff11a5d9d43ba and does not describe the code change.
npm install -g openclaw@latestIf you cannot upgrade now, the advisory's mitigation is to set gateway.auth and avoid custom cliPath values. After upgrading, review your OpenClaw config file for cliPath entries you did not set yourself.
How to tell if you were hit
Inspect the OpenClaw configuration for cliPath values that are not plain executable names or paths, especially ones with shell characters such as ;, $(, backticks, | or &. Check when the config file last changed against your own edits. Look for unexpected child processes of the gateway process and for local connections to the gateway WebSocket from processes that should not use it. The advisory gives no log signature for config.apply calls.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
An unauthenticated local client could use the Gateway WebSocket API to write config via config.apply and set unsafe cliPath values that were later used for command discovery, enabling command injection as the gateway user.
Impact
A local process on the same machine could execute arbitrary commands as the gateway process user.
Details
config.applyaccepted raw JSON and wrote it to disk after schema validation.cliPathvalues were not constrained to safe executable names/paths.- Command discovery used a shell invocation when resolving executables.
Mitigation
Upgrade to a patched release. If projects cannot upgrade immediately, set gateway.auth and avoid custom cliPath values.
Credited to hackerman70000.
Questions
- Can CVE-2026-25593 be exploited from the network?
The advisory describes a local client on the same machine, and the CVSS attack vector is local. The sources do not say whether the gateway listens beyond localhost, so check your bind settings.
- Does setting gateway.auth help?
Yes. The advisory lists setting gateway.auth, together with avoiding custom cliPath values, as the mitigation for people who cannot upgrade yet.
- Is it exploited in the wild?
No source says so, and the entry has no CISA KEV data.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
