7.6high
OpenClaw < 2026.5.18 - Arbitrary File Read via Shell Expansion in system.run Safe-bin Allowlist
- Severity
- 7.6high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.20% (higher than 10% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-mhq8-78pj-5j79
Description
OpenClaw before 2026.5.18 contains a policy enforcement vulnerability in system.run safe-bin allowlist validation that allows shell expansion to modify command interpretation on POSIX nodes. Authenticated operators can exploit shell metacharacters in approved commands to read unintended node-local files and expose sensitive configuration data.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| OpenClaw OpenClaw | before 2026.5.18 Not affected: 2026.5.18 | CVE List, NVD |
| openclaw (npm) | before 2026.5.18 | GitHub Advisory Database |
All scores
| VulnCheck | 7.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N |
| VulnCheck | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L |
| GitHub | 7.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:L |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Classification
What each source says
CVE List
OpenClaw before 2026.5.18 contains a policy enforcement vulnerability in system.run safe-bin allowlist validation that allows shell expansion to modify command interpretation on POSIX nodes. Authenticated operators can exploit shell metacharacters in approved commands to read unintended node-local files and expose sensitive configuration data.
GitHub Advisory Database
Summary
On POSIX nodes, OpenClaw's system.run safe-bin checks could approve a command before shell expansion changed how the command was interpreted. A value that appeared to be a safe-bin argument could expand into additional shell words and become a file operand.
This issue is limited to paired POSIX node execution through system.run with safe-bin or allowlist-style auto-approval. It is not an unauthenticated node takeover.
Affected configurations
This affects deployments where:
- a POSIX node is paired to the gateway
system.runis reachable by an authenticated operator or agent flow- exec policy uses safe-bin or allowlist-based auto-approval
- the approved command contains shell-expanded values that can change argv shape
Impact
A lower-privilege operator flow could cause an approved safe-bin command to read a node-local file that was not intended by the policy. Depending on the local files available to the node process, this could expose OpenClaw configuration data or other node-local information.
The issue is a policy-enforcement gap in argv validation, not a general statement that every safe-bin command is unsafe.
Patched Versions
The first stable patched version is 2026.5.18.
Mitigations
Upgrade to openclaw@2026.5.18 or later. Before upgrading, avoid broad safe-bin auto-approval for commands that can read arbitrary paths, and prefer explicit approval for node commands that touch local files.
NVD (es)
OpenClaw anterior a 2026.5.18 contiene una vulnerabilidad de aplicación de políticas en la validación de la lista de permitidos (allowlist) de safe-bin de system.run que permite la expansión de shell para modificar la interpretación de comandos en nodos POSIX. Los operadores autenticados pueden explotar metacaracteres de shell en comandos aprobados para leer archivos locales de nodo no deseados y exponer datos de configuración sensibles.
References
| https://github.com/openclaw/openclaw/security/advisories/GHSA-mhq8-78pj-5j79 | mitigation, vendor-advisory, web | |
| https://www.vulncheck.com/advisories/openclaw-arbitrary-file-read-via-shell-expansion-in-system-run-safe-bin-allowlist | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-53831 | advisory | |
| https://github.com/openclaw/openclaw | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-53831 changed 2026-06-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mhq8-78pj-5j79 changed 2026-08-26 | CC-BY-4.0 |
| NVD | CVE-2026-53831 changed 2026-07-23 | Public domain |