GHSA-mwcg-wfq3-4gjc

Suggest an improvement
Source
https://github.com/advisories/GHSA-mwcg-wfq3-4gjc
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-mwcg-wfq3-4gjc/GHSA-mwcg-wfq3-4gjc.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mwcg-wfq3-4gjc
Aliases
Downstream
Published
2026-03-03T19:18:06Z
Modified
2026-03-30T13:56:22Z
Severity
  • 5.9 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
OpenClaw's system.run approval TOCTOU via mutable symlink cwd target on node host
Details

Summary

In openclaw@2026.2.24, approval-bound system.run on node hosts could be influenced by mutable symlink cwd targets between approval and execution.

Details

Approval matching on the gateway validated command/argv and binding fields, including cwd, as provided text. Node execution later used runtime cwd resolution. A symlinked cwd could therefore be retargeted after approval and before spawn.

OpenClaw's trust model does not treat one shared gateway as a multi-tenant adversarial boundary, but approval integrity is still a security boundary for operator-reviewed command execution.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Affected: <= 2026.2.24
  • Patched: >= 2026.2.25

Fix Commit(s)

  • f789f880c934caa8be25b38832f27f90f37903db

Remediation

The fix adds defense-in-depth hardening for approval-bound node execution:

  • reject symlink cwd paths for approval-bound system.run
  • canonicalize path-like executable argv before spawn
  • bind CLI approval requests to exact commandArgv

Release Process Note

Patched version is pre-set to the release (2026.2.25). Advisory published with npm release 2026.2.25.

OpenClaw thanks @tdjackey for reporting.

Database specific
{
    "cwe_ids":  [
        "CWE-367",
        "CWE-59"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-03-03T19:18:06Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

npm / openclaw

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2026.2.25

Database specific

last_known_affected_version_range
"<= 2026.2.24"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/03/GHSA-mwcg-wfq3-4gjc/GHSA-mwcg-wfq3-4gjc.json"