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

CVE-2026-53861: OpenClaw: macOS Swift exec allowlist missed combined POSIX inline flags

mediumCVSS 3.1 6.6GHSA-c226-q6fx-6j6c

On macOS, OpenClaw 2026.5.5 and earlier have an exec allowlist that misses inline-command content written with combined POSIX flags. Shell code passed that way can run outside the allowlist check. Fixed in 2026.5.6.

Published Jun 18, 2026 · Analysis Oct 26, 2026

What an attacker can do

The macOS exec allowlist inspects shell invocations for inline commands, such as code passed after a -c flag. POSIX shells accept short flags combined into one argument. In affected versions the check did not recognize inline-command content expressed through those combined flags (CWE-184, incomplete list of disallowed inputs), so such a command passed as if it carried no inline code.

The attacker needs a low-privilege local session that can submit command requests, and a user action is required according to the CVSS 3.1 vector (local, low privileges, user interaction required). The shell content then runs outside the intended allowlist check, with high confidentiality and integrity impact on the Mac running the Gateway. Only the macOS Swift exec path is named.

The advisory keeps OpenClaw's trusted-operator model. The flaw matters where the allowlist is what limits what lower-trust senders or channels can run.

Who is affected

The npm package openclaw at 2026.5.5 and earlier, on macOS, where the exec allowlist is in use. Check the installed version:

npm ls openclaw

openclaw

Ecosystem
npm
Affected
<= 2026.5.5
Fixed in
2026.5.6
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.5.6, the first stable patched version:

npm install [email protected]

Until then, require approval for combined shell flag forms on macOS. Keep channel and tool allowlists narrow, do not share one Gateway between mutually untrusted users, and disable the feature if you do not need it.

How to tell if you were hit

Review macOS exec logs for shell invocations with combined short flags that include the inline-command flag, and compare them with your allowlist rules. Look for commands that ran without an approval record. Beam records agent shell commands, and its rules can flag shell wrappers that carry inline code.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

macOS Swift exec allowlist missed combined POSIX inline flags. In affected versions, a command request using combined POSIX inline-command flags could miss inline-command content expressed through combined flags.

This advisory is scoped to the named feature and configuration. It does not change OpenClaw's trusted-operator model: authenticated Gateway operators, installed plugins, and intentional local execution surfaces remain trusted unless a separate policy, approval, allowlist, sandbox, or auth boundary is crossed.

Impact

When the affected feature is enabled and reachable, this could run shell content outside the intended allowlist check. Practical impact depends on the operator's configuration and whether lower-trust input can reach that path.

Patched Versions

The first stable patched version is 2026.5.6.

Mitigations

require approval for combined shell flag forms on macOS until patched. As general hardening, keep channel and tool allowlists narrow, avoid sharing one Gateway between mutually untrusted users, and disable the affected feature when it is not needed.

Credited to zsxsoft, KeenSecurityLab, qclawer.

Questions

Does CVE-2026-53861 affect Linux or Windows?

The advisory title and mitigation name macOS, and the affected component is the macOS Swift exec allowlist. It names no other platform.

Which version fixes it?

openclaw 2026.5.6. Versions up to 2026.5.5 are affected.

What can I do before patching?

Require approval for combined shell flag forms on macOS, and keep allowlists narrow.

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