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

Published Mar 18, 2026
·
Updated

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 Software

2 affected components
OpenClaw OpenClaw<2026.2.23
OpenClaw Openclaw Node.js>=2026.2.22<2026.2.23

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade OpenClaw to a version that resolves this vulnerability.

    Fixed in 2026.2.23
  2. Compensating control

    Prevent unprivileged users from writing to trusted-prefix directories referenced by OpenClaw. For example, change permissions on /opt/homebrew/bin to remove write access for non-administrative users so only administrators/root can write to that directory.

  3. Operational

    Inspect trusted-prefix directories (for example /opt/homebrew/bin) for unexpected or attacker-controlled binaries; remove or quarantine any unapproved binaries and verify the integrity of OpenClaw processes.

Event History

Mar 18, 2026
CVE Published
via MITRE·01:34 AM
Data Sourced
via MITRE·01:34 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 AM
RemedyDescriptionSeverityWeaknessAffected Software
Mar 25, 58182
Event
via NVD·08:35 AM

Frequently Asked Questions

1

What is the severity of CVE-2026-22217?

CVE-2026-22217 is categorized as a critical vulnerability due to its potential for arbitrary code execution.

2

How do I fix CVE-2026-22217?

To mitigate CVE-2026-22217, update OpenClaw to version 2026.2.23 or later.

3

What causes CVE-2026-22217?

CVE-2026-22217 is caused by a flaw in OpenClaw's shell-env handling of the $SHELL environment variable.

4

Who is affected by CVE-2026-22217?

CVE-2026-22217 affects OpenClaw versions below 2026.2.23.

5

What are the potential risks of CVE-2026-22217?

Exploiting CVE-2026-22217 can allow attackers to execute arbitrary binaries on the affected system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203