AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-28363: OpenClaw is vulnerable to validation bypass through GNU long-option abbreviations in allowlist mode

criticalCVSS 3.1 9.9GHSA-7977-c43c-xpwj

OpenClaw before 2026.2.23 can be tricked into running sort with a dangerous option without approval. The tools.exec.safeBins check blocked only the exact string --compress-program, so GNU abbreviations such as --compress-prog slipped through in allowlist mode. Upgrade to openclaw 2026.2.23.

Published Feb 27, 2026 · Updated Feb 28, 2026 · Analysis Nov 8, 2026

What an attacker can do

OpenClaw's allowlist mode lets an agent run a short list of safe binaries, such as sort, without asking the user. For sort, the validator kept a deny list of risky flags. GNU tools accept any unique prefix of a long option, so --compress-prog means the same as --compress-program. The validator compared strings exactly and let the abbreviation pass.

--compress-program tells sort to launch an external program to compress temporary files. That turns a call the user thought was harmless into command execution. The command skips the approval step that was meant to guard it.

An attacker needs a way to get the agent to issue the sort call, for example through a prompt injected into content the agent reads, or through an account that can talk to it. The CVSS vector is network, low privileges, scope changed, with high impact on confidentiality, integrity and availability. In practice, a person who can steer the agent can run commands on the host that runs OpenClaw.

Who is affected

npm package openclaw, all versions before 2026.2.23. You are exposed if tools.exec.safeBins is in use in allowlist mode with sort in the list. Check the installed version:

npm ls -g openclaw

If OpenClaw runs in a container, check the image's version tag.

openclaw

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

How to fix it

Upgrade to openclaw 2026.2.23.

npm install -g [email protected]

The fix resolves each long option against the known flags, so any unique prefix maps to its full flag and a denied flag stays denied. Unknown options, ambiguous prefixes and inline values on flags that take none are rejected. The deny list for sort now also holds --random-source, --temporary-directory, -T, --output, -o and --files0-from. The sources give no workaround. Until you upgrade, remove sort from safeBins.

How to tell if you were hit

Review the logs of agent shell commands for sort calls that include --compress-prog, --compress-pro or any prefix of --compress-program, and for --files0-fro, --output or -T. Look for child processes of sort that are not sort itself. Check the approval history for exec calls that ran without a prompt. Beam records agent shell commands and its rules can flag risky ones, so it can show sort calls that carry an unexpected option.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

In OpenClaw before 2026.2.23, tools.exec.safeBins validation for sort could be bypassed via GNU long-option abbreviations (such as --compress-prog) in allowlist mode, leading to approval-free execution paths that were intended to require approval. Only an exact string such as --compress-program was denied.

Questions

Is OpenClaw 2026.2.22 affected by CVE-2026-28363?

Yes. Every version before 2026.2.23 is affected. 2026.2.23 is the patched release.

What is a GNU long-option abbreviation?

GNU tools accept any unique prefix of a long option. --compress-prog is accepted as --compress-program, but OpenClaw's old check only blocked the exact string.

Does CVE-2026-28363 need user approval to be bypassed?

That is the flaw. The commands were meant to need approval, but the abbreviated option let them take an approval-free path in allowlist mode.

Is CVE-2026-28363 exploited in the wild?

The sources do not say so. It has no KEV listing, and the EPSS score in this entry is 0.0065.

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