CVE-2026-32009: OpenClaw: binary hijacking via safeBins path bypass
MEDIUMOpenClaw prior to 2026.2.24 contains a path trust vulnerability where its safeBins execution allowlist grants blanket trust to package-manager-writable directories such as /opt/homebrew/bin and /usr/local/bin — allowing an attacker who can write to those paths to substitute a malicious binary for any allowlisted executable and achieve arbitrary code execution within the OpenClaw agent runtime. Although CVSS is medium (5.7) and exploitation requires existing local write access with elevated privileges, the EPSS percentile in the top 3% of all published CVEs signals this class of path-trust flaw is historically exploited at a much higher rate than severity alone implies, and the OpenClaw package carries 396 prior CVEs indicating persistent security hygiene issues. Because OpenClaw agents typically operate with broad tool access — API keys, filesystem, shell, outbound network — arbitrary code execution within the agent context produces a disproportionately large blast radius relative to the base CVSS score. Patch to 2026.2.24 immediately, audit /opt/homebrew/bin and /usr/local/bin for unexpected binaries, and containerize OpenClaw workloads to bound lateral movement.
What is the risk?
Moderate severity overall, elevated in shared-access developer and CI/CD environments where write access to package-manager paths may be loosely controlled. The high-privilege prerequisite (PR:H) and local attack vector (AV:L) significantly narrow the attacker population to those already with meaningful system access, positioning this as a privilege escalation and lateral movement risk rather than an initial-access vector. However, in agentic AI infrastructure — where OpenClaw runs continuously, often with broad system permissions — the impact of arbitrary code execution within the agent context is amplified well beyond what the 5.7 CVSS reflects. The EPSS top 97th percentile warrants tracking even without a public exploit.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| OpenClaw | pip | — | No patch |
Do you use OpenClaw? You're affected.
How severe is it?
What is the attack surface?
What should I do?
5 steps-
Patch immediately: upgrade OpenClaw to 2026.2.24 or later (patch commit b67e600).
-
Audit trusted directories: inspect /opt/homebrew/bin, /usr/local/bin, and any other paths in OpenClaw's default safeBins list for unexpected or recently added/modified binaries — compare against known-good package manager manifests.
-
Harden directory permissions: ensure /usr/local/bin is root-owned and non-writable by non-admin users; restrict Homebrew prefix ownership to a dedicated service account rather than the running user.
-
Containerize agent workloads: run OpenClaw in minimal containers with read-only root filesystems to neutralize path-hijacking opportunities entirely.
-
Enable binary integrity monitoring: deploy auditd (Linux) or macOS Endpoint Security to alert on new binary writes to these directories, particularly filenames matching common tool names invoked by OpenClaw.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-32009?
OpenClaw prior to 2026.2.24 contains a path trust vulnerability where its safeBins execution allowlist grants blanket trust to package-manager-writable directories such as /opt/homebrew/bin and /usr/local/bin — allowing an attacker who can write to those paths to substitute a malicious binary for any allowlisted executable and achieve arbitrary code execution within the OpenClaw agent runtime. Although CVSS is medium (5.7) and exploitation requires existing local write access with elevated privileges, the EPSS percentile in the top 3% of all published CVEs signals this class of path-trust flaw is historically exploited at a much higher rate than severity alone implies, and the OpenClaw package carries 396 prior CVEs indicating persistent security hygiene issues. Because OpenClaw agents typically operate with broad tool access — API keys, filesystem, shell, outbound network — arbitrary code execution within the agent context produces a disproportionately large blast radius relative to the base CVSS score. Patch to 2026.2.24 immediately, audit /opt/homebrew/bin and /usr/local/bin for unexpected binaries, and containerize OpenClaw workloads to bound lateral movement.
Is CVE-2026-32009 actively exploited?
No confirmed active exploitation of CVE-2026-32009 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-32009?
1. Patch immediately: upgrade OpenClaw to 2026.2.24 or later (patch commit b67e600). 2. Audit trusted directories: inspect /opt/homebrew/bin, /usr/local/bin, and any other paths in OpenClaw's default safeBins list for unexpected or recently added/modified binaries — compare against known-good package manager manifests. 3. Harden directory permissions: ensure /usr/local/bin is root-owned and non-writable by non-admin users; restrict Homebrew prefix ownership to a dedicated service account rather than the running user. 4. Containerize agent workloads: run OpenClaw in minimal containers with read-only root filesystems to neutralize path-hijacking opportunities entirely. 5. Enable binary integrity monitoring: deploy auditd (Linux) or macOS Endpoint Security to alert on new binary writes to these directories, particularly filenames matching common tool names invoked by OpenClaw.
What systems are affected by CVE-2026-32009?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, local AI agent deployments, CI/CD AI pipelines, developer workstations running AI agents.
What is the CVSS score for CVE-2026-32009?
CVE-2026-32009 has a CVSS v3.1 base score of 5.7 (MEDIUM). The EPSS exploitation probability is 0.13%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0053 AI Agent Tool Invocation AML.T0074 Masquerading AML.T0107 Exploitation for Defense Evasion AML.T0110 AI Agent Tool Poisoning AML.T0112.000 Local AI Agent Compliance Controls Affected
What are the technical details?
Original Advisory
OpenClaw versions prior to 2026.2.24 contain a policy bypass vulnerability in the safeBins allowlist evaluation that trusts static default directories including writable package-manager paths like /opt/homebrew/bin and /usr/local/bin. An attacker with write access to these trusted directories can place a malicious binary with the same name as an allowed executable to achieve arbitrary command execution within the OpenClaw runtime context.
Exploitation Scenario
An attacker compromises a developer account or service account with write access to /opt/homebrew/bin — possible via a prior phishing compromise, misconfigured CI runner permissions, or a malicious npm/pip package with postinstall scripts. They drop a malicious binary named 'python' (or any other tool OpenClaw is known to invoke) into /opt/homebrew/bin, shadowing the legitimate Homebrew-managed binary. When OpenClaw next invokes 'python' as part of an agentic task, its safeBins allowlist evaluates the binary's parent directory (/opt/homebrew/bin) against its static trust list and approves execution without verifying binary hash or provenance. The malicious binary runs in the OpenClaw runtime context — exfiltrating LLM API keys, cloud credentials, and any filesystem-accessible secrets — then chains to a persistent reverse shell, mirroring the credential theft pattern observed in AIID #1368.
Weaknesses (CWE)
CWE-426 — Untrusted Search Path: The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.
- [Architecture and Design, Implementation] Hard-code the search path to a set of known-safe values (such as system directories), or only allow them to be specified by the administrator in a configuration file. Do not allow these settings to be modified by an external party. Be careful to avoid related weaknesses such as CWE-426 and CWE-428.
- [Implementation] When invoking other programs, specify those programs using fully-qualified pathnames. While this is an effective approach, code that uses fully-qualified pathnames might not be portable to other systems that do not use the same pathnames. The portability can be improved by locating the full-qualified paths in a centralized, easily-modifiable location within the source code, and having the code refer to these paths.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H References
Timeline
Related Vulnerabilities
CVE-2026-33579 9.9 OpenClaw: scope bypass escalates low-priv to admin
Same package: openclaw CVE-2026-32922 9.9 OpenClaw: privilege escalation to RCE via token scope bypass
Same package: openclaw CVE-2026-30741 9.8 OpenClaw: RCE via request-side prompt injection
Same package: openclaw CVE-2026-32038 9.8 OpenClaw: sandbox bypass enables container lateral movement
Same package: openclaw CVE-2026-53838 9.8 OpenClaw: approval scope bypass via reconnection state
Same package: openclaw