Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-22217 EUVD-2026-12730GHSA-p4wh-cr8m-gm6c

OpenClaw 2026.2.22 < 2026.2.23 - Arbitrary Binary Execution via $SHELL Environment Variable Trusted Prefix Fallback

Published Mar 18, 2026 · Updated Jun 23, 2026 · Assigned by VulnCheck

Description

OpenClaw version 2026.2.22 prior to 2026.2.23 contains an arbitrary code execution vulnerability in shell-env that allows attackers to execute attacker-controlled binaries by exploiting 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 in the OpenClaw process context.

Affected products

VendorProductAffectedFixed
OpenClaw OpenClaw 2026.2.22 – < 2026.2.23 2026.2.23

Affected packages

EcosystemPackageAffectedFixedRecord
npm openclaw >= 2026.2.22, < 2026.2.23 2026.2.23 GHSA-p4wh-cr8m-gm6c

Advisories 1

References