Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

GHSA-j425-whc4-4jgc

MEDIUM

OpenClaw's `system.run` env override filtering allowed dangerous helper-command pivots

Mitigation

  • Upgrade openclaw to 2026.3.7 or later.

Who should check

  • Projects that depend on npm package openclaw (< 2026.3.7)

Vulnerability facts

Affected
openclaw < 2026.3.7
Fixed in
2026.3.7
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
CWE
CWE-15, CWE-639
Published
Modified

Description

### Summary `system.run` env override sanitization allowed dangerous override-only helper-command pivots to reach subprocesses. A caller who could invoke `system.run` with `env` overrides could bypass allowlist/approval intent by steering an allowlisted tool through helper-command or config-loading environment variables such as `GIT_SSH_COMMAND`, editor/pager hooks, and `GIT_CONFIG_*` / `NPM_CONFIG_*`. ### Affected Packages / Versions - Package: `openclaw` (npm) - Latest published vulnerable version: `2026.3.2` - Affected range: `<= 2026.3.2` - Patched in: `2026.3.7` ### Details Before the fix, `src/infra/host-env-security.ts` blocked only a narrow set of override-only environment variables. Dangerous request-scoped overrides such as `GIT_SSH_COMMAND` and prefix families such as `GIT_CONFIG_*` and `NPM_CONFIG_*` could still survive `sanitizeSystemRunEnvOverrides(...)` / `sanitizeHostExecEnv(...)` and reach the spawned process. That mattered for `system.run` allowlist and approval flows because approval evaluation was tied to the reviewed binary/argv, while the launched process could still inherit attacker-controlled env overrides that changed helper-command execution or config resolution. For allowlisted tools such as `git`, this allowed behavior outside the reviewed command semantics. The fix extends the shared TypeScript and macOS policy to block dangerous override-only exact keys and prefixes while preserving trusted inherited base-environment behavior. ### Impact This is a real protection-bypass issue, but exploitation requires an already tool-enabled caller who can invoke `system.run` and supply `env` overrides. In affected deployments, that caller could bypass allowlist/approval intent and trigger helper-command execution or config-loading behavior that is not represented by the approved command line. Maintainer severity is set to medium because the bug still requires that existing execution capability; the vulnerability is the mismatch between reviewed command semantics and the actual spawned-process behavior. ### Fix Commit(s) - `e27bbe4982439da6864160fd1b66445058f74801` ### Release Process Note npm `2026.3.7` was published on March 8, 2026. This advisory is fixed in the released package. Thanks @tdjackey and @SnailSploit for reporting.

Affected and fixed versions

Package / productAffectedFixedSource
npm openclaw< 2026.3.72026.3.7osv

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by GHSA-j425-whc4-4jgc. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/GHSA-j425-whc4-4jgc.md
Affected: openclaw < 2026.3.7
Fixed in: 2026.3.7

Steps:
1. Search this machine and project for openclaw (npm): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is GHSA-j425-whc4-4jgc being exploited?

There is no confirmed exploitation: GHSA-j425-whc4-4jgc is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is GHSA-j425-whc4-4jgc?

It has no CVSS score yet. Unknown.

Which versions are affected by GHSA-j425-whc4-4jgc?

openclaw < 2026.3.7.

Is there a fix for GHSA-j425-whc4-4jgc?

Yes. Fixed in 2026.3.7. Upgrade openclaw to 2026.3.7 or later.

How do I check if I'm affected by GHSA-j425-whc4-4jgc?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors