Skip to content
Heist/ feed
Back to feed
High

OpenClaw: Prevent shell injection in macOS keychain credential write

Type: advisorySources: OSV

OpenClaw is a personal AI assistant. In versions 2026.2.13 and below, when using 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. This issue has been fixed in version 2026.2.14.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-27487
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 08:30 UTC · Revision 1

Source evidence

OpenClaw: Prevent shell injection in macOS keychain credential write

core-osv · Original source

Published 21 Feb 2026, 09:35 UTC

OpenClaw is a personal AI assistant. In versions 2026.2.13 and below, when using 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. This issue has been fixed in version 2026.2.14.

osv:CVE-2026-27487
Complete source record
{
  "id": "d1dac3d2c4d4ac262f7f3d97fb6bb359eba1aed0f4bde87eb06aa9b0cc1aef76",
  "url": "https://osv.dev/vulnerability/CVE-2026-27487",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "OpenClaw: Prevent shell injection in macOS keychain credential write",
    "summary": "OpenClaw is a personal AI assistant. In versions 2026.2.13 and below, when using 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. This issue has been fixed in version 2026.2.14.",
    "evidence": "osv:CVE-2026-27487",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-27487",
      "aliases": [
        "CVE-2026-27487",
        "GHSA-4564-pvr2-qq4h"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/openclaw/openclaw",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b5ab92eef4e4f6099c98817e0917c99ec9e03045"
                },
                {
                  "fixed": "66d7178f2d6f9d60abad35797f97f3e61389b70c"
                },
                {
                  "fixed": "9dce3d8bf83f13c067bc3c32291643d2f1f10a06"
                },
                {
                  "fixed": "b908388245764fb3586859f44d1dff5372b19caf"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2026.2.14"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "66d7178f2d6f9d60abad35797f97f3e61389b70c"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9dce3d8bf83f13c067bc3c32291643d2f1f10a06"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b908388245764fb3586859f44d1dff5372b19caf"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b5ab92eef4e4f6099c98817e0917c99ec9e03045"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v2026.2.14"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2026.2.13",
            "v2026.2.12",
            "v2026.2.9",
            "v2026.2.6-3",
            "v2026.2.6-2",
            "v2026.2.6-1",
            "v2026.2.6",
            "v2026.2.3",
            "v2026.2.2",
            "v2026.2.1",
            "v2026.1.30",
            "v2026.1.29",
            "v2026.1.24-1",
            "v2026.1.24",
            "v2026.1.23",
            "v2026.1.22",
            "v2026.1.21",
            "v2026.1.20",
            "v2026.1.16-2",
            "v2026.1.15",
            "v2026.1.14-1",
            "v2026.1.13",
            "v2026.1.12-2",
            "v2026.1.12",
            "v2026.1.11-3",
            "v2026.1.11-2",
            "v2026.1.11-1",
            "v2026.1.11",
            "v2026.1.10",
            "v2026.1.9",
            "v2026.1.8",
            "v2026.1.5-3",
            "v2026.1.5-2",
            "v2026.1.5-1",
            "v2026.1.5",
            "v2.0.0-beta5",
            "v2.0.0-beta4",
            "v2.0.0-beta3",
            "v2.0.0-beta2",
            "v2.0.0-beta1",
            "v1.3.0",
            "v1.2.2",
            "v1.2.1",
            "v1.2.0",
            "v1.1.0",
            "v1.0.4",
            "v0.1.3",
            "v0.1.2",
            "v0.1.1",
            "v0.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-27487.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.437716098Z",
      "provider": "osv",
      "references": [
        "https://github.com/openclaw/openclaw/releases/tag/v2026.2.14",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27487.json",
        "https://github.com/openclaw/openclaw/security/advisories/GHSA-4564-pvr2-qq4h",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-27487",
        "https://github.com/openclaw/openclaw/commit/66d7178f2d6f9d60abad35797f97f3e61389b70c",
        "https://github.com/openclaw/openclaw/commit/9dce3d8bf83f13c067bc3c32291643d2f1f10a06",
        "https://github.com/openclaw/openclaw/commit/b908388245764fb3586859f44d1dff5372b19caf",
        "https://github.com/openclaw/openclaw/pull/15924"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/27xxx/CVE-2026-27487.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-27487",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518759,
  "published_at": "2026-02-21T09:35:28.935+00:00"
}