PT-2026-26013 · Openclaw · Openclaw

·

CVE-2026-22217

·

Published

2026-02-24

·

Updated

2026-03-19

CVSS v3.1

6.1

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L
Name of the Vulnerable Software and Affected Versions OpenClaw versions 2026.2.22 through 2026.2.22-2
Description OpenClaw contains an arbitrary code execution issue in the shell-env component. This allows attackers to execute attacker-controlled binaries by exploiting the trusted-prefix fallback logic for the $SHELL variable. An attacker can influence the $SHELL environment variable on systems with writable trusted-prefix directories, such as /opt/homebrew/bin, to execute arbitrary binaries within the OpenClaw process context. The issue stems from the shell-env component accepting shells either listed in /etc/shells or executables under hardcoded trusted prefixes like /bin, /usr/bin, /usr/local/bin, /opt/homebrew/bin, and /run/current-system/sw/bin. The selected shell is then executed as a login shell for environment probing.
Recommendations Update OpenClaw to version 2026.2.23 or later.

Exploit

Fix

Incomplete List of Disallowed Inputs

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2026-05249
CVE-2026-22217
GHSA-P4WH-CR8M-GM6C

Affected Products

Openclaw