Skip to content
HighVulnerability

GHSA-4564-pvr2-qq4h: OpenClaw: Prevent shell injection in macOS keychain credential write

Published
Record updated
View JSON
Affected
  • openclaw < 2026.2.14
Fixed in
2026.2.14
  • released February 14, 2026, 3 days before disclosure

Summary

The Claude CLI keychain credential refresh path in OpenClaw, on macOS, built a shell command to write the updated OAuth JSON blob into Keychain via `security add-generic-password -w`. Because OAuth tokens are user-controlled data, this created an OS command injection risk. Affected versions are `openclaw` (npm) `<= 2026.2.13`.

Mitigation

Patched version `>= 2026.2.14` (next release). The fix avoids invoking a shell by using `execFileSync("security", argv)` and passing the updated keychain payload as a literal argument. Fix PR: #15924.