NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

GHSA-2mc2-g238-722j: OpenClaw affected by iMessage remote attachment SCP hardening (strict host-key checks and remoteHost validation)

mediumCVSS 4.0 5.3

OpenClaw up to 2026.2.17 fetched remote iMessage attachments over SCP with `StrictHostKeyChecking=accept-new` and did not validate `channels.imessage.remoteHost`. A first-connection man-in-the-middle could get a wrong host key trusted, and a crafted host value could change SCP arguments. Upgrade `openclaw` to 2026.2.19.

Published Mar 3, 2026 · Analysis Oct 31, 2026

What an attacker can do

Two problems sat in the remote attachment path. First, SCP used StrictHostKeyChecking=accept-new, which trusts whatever host key appears on the first connection. An attacker who can intercept that first connection, by MITM or DNS poisoning, can have their own key accepted and then serve or read attachment traffic. Second, channels.imessage.remoteHost was not checked as a plain SSH host token. An unsafe value, including a runtime auto-detected one, could change how SCP parses its arguments, which is why the advisory lists OS command injection (CWE-78) alongside improper certificate validation (CWE-295).

Only remote iMessage deployments that fetch attachments over SCP are affected. The attacker needs a network position on the first connection, or influence over the host value. The CVSS 4.0 vector shows low privileges and low integrity impact. For a team, the main concern is attachment content that an agent processes: a spoofed host can feed it files it will treat as coming from your Mac host.

Who is affected

The openclaw npm package up to and including 2026.2.17, in setups that use a remote iMessage host with SCP attachment fetching (channels.imessage.remoteHost). Local-only iMessage setups do not use this path. Check the version and config:

npm ls openclaw
openclaw --version

Then check whether channels.imessage.remoteHost is set in your config.

openclaw

Ecosystem
npm
Affected
<= 2026.2.17
Fixed in
2026.2.19
Check
npm ls openclaw

How to fix it

Upgrade to 2026.2.19:

npm install -g [email protected]

The fix (commit 49d0def6d1e88f002026b1d2a35aa615d48a751a) requires StrictHostKeyChecking=yes for the SCP and SSH tunnel paths, normalizes and strictly validates remoteHost, adds a -- argument barrier when SCP parses the remote source, validates channels.imessage.remoteHost in the config schema, and rejects unsafe auto-detected host tokens at runtime. Because host keys are now strictly checked, add the remote host's key to known_hosts on the gateway host before relying on attachment fetches.

How to tell if you were hit

Check known_hosts on the gateway host for a key for your iMessage host that you did not verify. Look in the config for a remoteHost that contains spaces, a leading -, or other characters that are not valid in a hostname. Review DNS answers for that hostname. Unexpected changes in attachment source hosts are a warning sign. The sources give no fixed log string.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Remote iMessage attachment fetches used SCP with trust-on-first-use host-key behavior and accepted unvalidated remote host tokens.

Before the fix:

  • SCP used StrictHostKeyChecking=accept-new in the remote attachment path.
  • channels.imessage.remoteHost was not validated as a strict SSH host token.

Impact

In remote iMessage deployments that use SCP attachment fetching, a first-connection MITM/DNS-poisoning scenario could cause the wrong host key to be trusted. Unsafe remote host token values could also alter SCP argument semantics.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published npm version currently affected: 2026.2.17
  • Vulnerable range (structured field): <= 2026.2.17
  • Patched version (pre-set for next release): >= 2026.2.19

Fix

The fix hardens remote attachment SSH/SCP handling by:

  • requiring StrictHostKeyChecking=yes for SCP and SSH tunnel paths,
  • adding strict remoteHost normalization/validation,
  • adding -- argument barrier for SCP remote source parsing,
  • validating channels.imessage.remoteHost in config schema,
  • rejecting unsafe auto-detected host tokens at runtime.

Fix Commit(s)

  • Pushed to main: 49d0def6d1e88f002026b1d2a35aa615d48a751a

OpenClaw thanks @allsmog for reporting.

Credited to allsmog.

Questions

Which OpenClaw version fixes GHSA-2mc2-g238-722j?

2026.2.19 or later. The vulnerable range runs up to 2026.2.17.

Does this affect local iMessage use?

The advisory describes remote iMessage deployments that fetch attachments over SCP. The weakness is in that remote path.

Will the fix block my first connection?

With StrictHostKeyChecking=yes, the host must already be trusted. Add the remote host key to known_hosts first, after checking its fingerprint through a channel you trust.

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. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More OpenClaw vulnerabilities

All OpenClaw entries