{"id":"CVE-2026-31995","aliases":["GHSA-fg3m-vhrr-8gj6"],"url":"https://o3.security/vulnerability/CVE-2026-31995","summary":"OpenClaw 2026.1.21 < 2026.2.19 - Command Injection via Windows Shell Fallback in Lobster Extension","details":"### Summary\nOn Windows, the Lobster extension previously retried certain spawn failures (`ENOENT`/`EINVAL`) with `shell: true` for wrapper compatibility. In that fallback path, tool-provided arguments could be interpreted by `cmd.exe` if fallback was triggered.\n\n### Affected Packages / Versions\n- Package: `openclaw` (npm)\n- Latest published version at triage: `2026.2.17`\n- Affected range: `>= 2026.1.21 <= 2026.2.17`\n- Patched version: `2026.2.19` (pre-set for next release)\n\n### Fix\nThe Windows shell fallback was removed. Wrapper compatibility is preserved by resolving `.cmd`/`.bat` shims to a concrete Node entrypoint (or executable) and executing with explicit argv (no shell). If a safe entrypoint cannot be resolved, execution now fails closed with a guided error.\n\n### Fix Commit(s)\n- `ba7be018da354ea9f803ed356d20464df0437916`\n\n### Severity Context\nThis issue requires Windows plus fallback-triggering conditions, and argument control through a local operator-defined workflow. \n\nOpenClaw thanks @tdjackey for reporting.","published":"2026-03-19T01:00:53.469Z","modified":"2026-10-28T02:31:04.637905811Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"openclaw","fixedVersion":"2026.2.19"}],"fix":{"url":"https://github.com/openclaw/openclaw/commit/ba7be018da354ea9f803ed356d20464df0437916","label":"openclaw/openclaw@ba7be01"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31995.json"},{"type":"ADVISORY","url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-fg3m-vhrr-8gj6"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31995"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/openclaw-command-injection-via-windows-shell-fallback-in-lobster-extension"},{"type":"FIX","url":"https://github.com/openclaw/openclaw/commit/ba7be018da354ea9f803ed356d20464df0437916"},{"type":"PACKAGE","url":"https://github.com/openclaw/openclaw"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:31:04.637905811Z"}}