8.7high
OpenClaw < 2026.5.18 - Command Argument Modification via Shell Wrapper Between Approval and Execution
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 1.08% (higher than 65% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
- Also known as
- GHSA-2j8v-hwgc-x698
Description
OpenClaw before 2026.5.18 contains a command injection vulnerability where shell wrapper argv could change between approval and execution. Attackers can rebuild command arguments after allowlist approval to execute unapproved command shapes, potentially bypassing security controls.
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 | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Classification
What each source says
CVE List
OpenClaw before 2026.5.18 contains a command injection vulnerability where shell wrapper argv could change between approval and execution. Attackers can rebuild command arguments after allowlist approval to execute unapproved command shapes, potentially bypassing security controls.
GitHub Advisory Database
Summary
Shell wrapper argv could change between approval and execution. In affected versions, a command request using a shell wrapper form could approve one resolved argv shape and rebuild another for execution.
This advisory is scoped to the named feature and configuration. It does not change OpenClaw's trusted-operator model: authenticated Gateway operators, installed plugins, and intentional local execution surfaces remain trusted unless a separate policy, approval, allowlist, sandbox, or auth boundary is crossed.
Impact
When the affected feature is enabled and reachable, this could run a command shape that was not checked against the allowlist. Practical impact depends on the operator's configuration and whether lower-trust input can reach that path.
Patched Versions
The first stable patched version is 2026.5.18.
Mitigations
require explicit approval for shell wrappers and avoid durable allowlists for wrapper-heavy commands until patched. As general hardening, keep channel and tool allowlists narrow, avoid sharing one Gateway between mutually untrusted users, and disable the affected feature when it is not needed.
NVD (es)
OpenClaw anterior a 2026.5.18 contiene una vulnerabilidad de inyección de comandos donde el argv del wrapper de shell podría cambiar entre la aprobación y la ejecución. Los atacantes pueden reconstruir los argumentos de comandos después de la aprobación de la lista de permitidos para ejecutar estructuras de comandos no aprobadas, eludiendo potencialmente los controles de seguridad.
References
| https://github.com/openclaw/openclaw/security/advisories/GHSA-2j8v-hwgc-x698 | mitigation, vendor-advisory, web | |
| https://www.vulncheck.com/advisories/openclaw-command-argument-modification-via-shell-wrapper-between-approval-and-execution | third-party-advisory | |
| https://github.com/openclaw/openclaw | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-53822 changed 2026-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2j8v-hwgc-x698 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2026-53822 changed 2026-07-23 | Public domain |