AgentbeamBeta
AI agent vulnerability · OpenClaw

GHSA-f8r2-vg7x-gh8m: OpenClaw: Exec approval allowlist patterns overmatched on POSIX paths

mediumCVSS 4.0 6.9

OpenClaw up to 2026.3.8 matched exec approval allowlist entries too loosely on POSIX systems. matchesExecAllowlistPattern lowercased patterns and targets, and its ? wildcard could match a slash. Commands or executable paths the operator never approved could pass. Upgrade the npm package openclaw to 2026.3.11 or later.

Published Mar 13, 2026 · Analysis Nov 7, 2026

What an attacker can do

The exec approval allowlist is the list of commands or paths an operator lets the agent run without a prompt. The function matchesExecAllowlistPattern normalized both pattern and target with lowercasing, and compiled glob matching too broadly on POSIX. POSIX file systems are case-sensitive, so folding case lets /usr/bin/Tool match an entry written for /usr/bin/tool.

In addition, the ? wildcard could match the / character. A pattern meant to match one character inside a path segment could cross segments, so an entry like /opt/a?b could match /opt/a/b. Both effects widen what an entry approves.

The result is that an agent can run an executable the operator did not mean to allow. The attacker needs a way to place or name such a path and to get the agent to run it, for example through a crafted prompt or a poisoned repository. The advisory rates the issue medium (CVSS 4.0 score 6.9, low integrity impact) and describes no end-to-end exploit.

Who is affected

The npm package openclaw, version 2026.3.8 and below. The flaw matters for setups that rely on exec approval allowlist entries, especially entries with wildcards or entries differing from other paths only by case. Check the version:

npm ls openclaw

openclaw

Ecosystem
npm
Affected
<= 2026.3.8
Fixed in
2026.3.11
Check
npm ls openclaw

How to fix it

Upgrade to openclaw 2026.3.11, which is the patched release. Later releases such as 2026.3.12 also include it:

npm install [email protected]

The release makes exec allowlist matching respect the intended path semantics, with regression tests for POSIX case folding and slash-crossing. After upgrading, review wildcard entries and prefer exact paths.

How to tell if you were hit

Review the exec allowlist for entries that use ? or other wildcards. Check the agent's recent command history for executables in paths that differ in letter case from approved ones, or that sit in extra subdirectories. Beam records agent shell commands, and its rules can flag risky ones, so it can show commands that ran outside your intended list.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

matchesExecAllowlistPattern normalized patterns and targets with lowercasing and compiled glob matching too broadly on POSIX. In addition, the ? wildcard could match /, which allowed matches to cross path segments.

Impact

These matching rules could overmatch allowlist entries and permit commands or executable paths that an operator did not intend to approve.

Affected versions

openclaw <= 2026.3.8

Patch

Fixed in openclaw 2026.3.11 and included in later releases such as 2026.3.12. Exec allowlist matching now respects the intended path semantics, and regression tests cover the POSIX case-folding and slash-crossing cases.

Credited to zpbrent.

Questions

What exactly was wrong with the allowlist matching?

Patterns and targets were lowercased on POSIX, and the ? wildcard could match /, so matches could cross path segments.

Which version fixes GHSA-f8r2-vg7x-gh8m?

openclaw 2026.3.11. Later releases such as 2026.3.12 include the fix.

Does this affect Windows?

The advisory describes POSIX behaviour. It does not say anything about Windows.

Is it exploited in the wild?

The advisory does not say so, and the entry has no CISA KEV data.

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