openclaw
Affected
- introduced
0, fixed2026.2.22(semver)
Fixed versions
2026.2.22
Fix
- Fixed version
2026.2.22npm install [email protected]
Advisory
Also known as: None
OpenClaw shell-env fallback trusted startup env and could execute attacker-influenced login-shell paths
Summary
OpenClaw shell-env fallback trusted startup environment values and could execute attacker-influenced login-shell startup paths before loading env keys.
Affected Packages / Versions
openclaw (npm)>= 2026.1.5 and <= 2026.2.21-2main: 9363c320d8ffe29290906752fab92621da02c3f72026.2.22Details
The vulnerable chain was in the shell-env fallback path:
src/infra/shell-env.tsresolveShell(env) trusted env.SHELL when set.execLoginShellEnvZero(...) executed ${SHELL} -l -c "env -0" with inherited runtime env.src/config/io.tssrc/config/env-vars.ts / env policy coverageSHELL handling was hardened, but startup-path selectors (HOME, ZDOTDIR) still needed explicit blocking in config env ingestion and sanitization for shell fallback execution.With env/config influence, this could trigger unintended command execution in shell startup processing on the OpenClaw host process context.
Fix
Mainline hardening now:
SHELL, HOME, and ZDOTDIR during config env ingestion used by runtime fallback,HOME to the real user home and dropping ZDOTDIR + dangerous startup vars,Fix Commit(s)
9363c320d8ffe29290906752fab92621da02c3f7Impact
SECURITY.md), this is not a public-remote issue and depends on crossing local trusted-operator boundaries.Release Process Notepatched_versions is intentionally pre-set to the planned next release (2026.2.22) so once npm release is out, maintainers can publish advisory immediately.
OpenClaw thanks @tdjackey for reporting.
Medium Basis: The source's own band: MODERATE
0, fixed 2026.2.22 (semver)2026.2.22
2026.2.22npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0