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

CVE-2026-32016: OpenClaw: macOS optional allowlist basename matching could bypass path-based policy

mediumCVSS 4.0 5.1 · 3.1 7.8GHSA-7f4q-9rqh-x36p

On the OpenClaw macOS node-host, basename-only allowlist entries such as `echo` matched any binary with that name. A local file like `./echo` could then run without approval under `security=allowlist` and `ask=on-miss`. The default `security=deny` is not affected. Fixed in openclaw 2026.2.22.

Published Mar 3, 2026 · Updated Mar 30, 2026 · Analysis Oct 31, 2026

What an attacker can do

OpenClaw's optional exec approvals can run allowlisted commands without prompting the operator. On the macOS node-host, an allowlist entry that was only a basename, for example echo, was trusted by name. The match did not check which file the name resolved to. A binary in the working directory called ./echo therefore counted as the allowed command and skipped the ask=on-miss prompt (CWE-426 untrusted search path, CWE-863).

To use it, an attacker must get a same-name executable onto the host in a place the agent runs commands from, and cause a command with that name to run. An agent working in a malicious or poisoned repository is the natural route: the repo ships an echo or similar file, and a request to run it passes silently. The attacker then runs code as the OpenClaw user.

The preconditions are narrow. The host must be macOS, exec approvals must be enabled with security=allowlist, and basename-only entries must exist. Default installs use security=deny and are not impacted.

Who is affected

The openclaw npm package before 2026.2.22 is affected, on the macOS node-host only, with security=allowlist and at least one allowlist entry that is a bare command name rather than a full path. Check the version:

npm ls openclaw

Then review your exec-approvals allowlist for entries without a path.

openclaw

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

How to fix it

Upgrade to openclaw 2026.2.22.

npm install [email protected]

Fix commit dd41fad enforces path-only allowlist matching on the macOS node-host and removes the basename fallback. It migrates legacy basename entries to their last-resolved paths when those are known. The UI and store validation now reject allowlist patterns that are not paths. After upgrading, check that migrated entries point to the binaries you intended.

How to tell if you were hit

List the allowlist entries and flag any that are a plain name such as echo. Look through exec logs on macOS node-hosts for commands run through a relative path like ./echo or from a repository directory without an approval prompt. Check working directories of agent sessions for executables named after common tools. Beam records agent shell commands, which shows what an agent ran and from where.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

On macOS node-host, optional exec-approval allowlist mode previously treated basename-only entries (for example echo) as trusted command matches. This could allow a same-name local binary (for example ./echo) to run without approval under security=allowlist + ask=on-miss.

Scope / Preconditions

  • macOS node-host path.
  • Optional exec approvals feature enabled with security=allowlist.
  • Basename-only allowlist entries configured.

Default install posture is not impacted: security=deny by default.

Affected Packages / Versions

  • Package: openclaw (npm)
  • Latest published npm version at triage time: 2026.2.21-2
  • Vulnerable range: <=2026.2.21-2
  • Planned patched version (next release): >= 2026.2.22

Remediation

  • Enforced path-only allowlist matching on macOS node-host (basename fallback removed).
  • Added migration for legacy basename allowlist entries to last-resolved paths when available.
  • UI/store validation now rejects non-path allowlist patterns.

Fix Commit(s)

  • dd41fadcaf58fd9deb963d6e163c56161e7b35dd

Release Process Note

Patched version is pre-set for the planned next release (2026.2.22). Once that npm release is out, advisory can be published without further field edits.

OpenClaw thanks @tdjackey for reporting.

Credited to tdjackey.

Questions

Is the default OpenClaw install affected?

No. The default is security=deny. The flaw needs security=allowlist with basename-only entries.

Does this affect Linux or Windows hosts?

The advisory scopes it to the macOS node-host path.

What changed about existing allowlist entries?

In 2026.2.22, legacy basename entries are migrated to their last-resolved paths when available, and non-path patterns are rejected in the UI and store.

Is CVE-2026-32016 exploited in the wild?

No source reports exploitation, and it is not in CISA's KEV catalog.

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