Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-27487: OpenClaw: Prevent shell injection in macOS keychain credential write

highCVSS 3.1 7.6GHSA-4564-pvr2-qq4h

Summary On macOS, the Claude CLI keychain credential refresh path constructed a shell command to write the updated JSON blob into Keychain via security add-generic-password -w .... Because OAuth tokens are user-controlled data, this created an OS command injection risk. The fix avoids invoking a shell by using execFileSync("security", argv) and passing the updated keychain payload as a literal argument.

Published Feb 18, 2026 · Updated Feb 23, 2026

Affected packages

openclaw

Ecosystem
npm
Affected
< 2026.2.14
Fixed in
2026.2.14
Check
npm ls openclaw

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Summary

On macOS, the Claude CLI keychain credential refresh path constructed a shell command to write the updated JSON blob into Keychain via security add-generic-password -w .... Because OAuth tokens are user-controlled data, this created an OS command injection risk.

The fix avoids invoking a shell by using execFileSync("security", argv) and passing the updated keychain payload as a literal argument.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Platform: macOS only
  • Affected versions: <= 2026.2.13

Fix

  • Patched version: >= 2026.2.14 (next release)
  • Fix PR: #15924
  • Fix commits (merged to main):
  • 9dce3d8bf83f13c067bc3c32291643d2f1f10a06
  • 66d7178f2d6f9d60abad35797f97f3e61389b70c
  • b908388245764fb3586859f44d1dff5372b19caf

Thanks @aether-ai-agent for reporting.

Credited to aether-ai-agent.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More OpenClaw vulnerabilities

All OpenClaw entries