{"id":"GHSA-fg3m-vhrr-8gj6","summary":"OpenClaw has Windows Lobster shell fallback command injection in constrained fallback path","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: `\u003e= 2026.1.21 \u003c= 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.","aliases":["CVE-2026-31995"],"modified":"2026-03-19T21:41:21.603353Z","published":"2026-03-03T23:19:08Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-03-03T23:19:08Z","nvd_published_at":null,"cwe_ids":["CWE-78"],"severity":"MODERATE"},"references":[{"type":"WEB","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":"WEB","url":"https://github.com/openclaw/openclaw/commit/ba7be018da354ea9f803ed356d20464df0437916"},{"type":"PACKAGE","url":"https://github.com/openclaw/openclaw"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/openclaw-command-injection-via-windows-shell-fallback-in-lobster-extension"}],"affected":[{"package":{"name":"openclaw","ecosystem":"npm","purl":"pkg:npm/openclaw"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2026.1.21"},{"fixed":"2026.2.19"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 2026.2.17","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-fg3m-vhrr-8gj6/GHSA-fg3m-vhrr-8gj6.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}]}