CVE-2026-32015: OpenClaw: PATH hijack bypasses exec allowlist controls
HIGHCVE-2026-32015 is a CWE-426 (Untrusted Search Path) vulnerability in OpenClaw's `tools.exec.safeBins` allowlist that validates executable names but not their resolved filesystem paths, allowing a low-privileged attacker who controls the agent process PATH to substitute a trojan binary with an allowlisted name (e.g., `jq`) and achieve arbitrary code execution. AI agent frameworks like OpenClaw routinely run with elevated permissions and access sensitive data sources, meaning a successful exploit grants an attacker a highly privileged execution context within the AI pipeline. Although no public exploit exists and CISA KEV has not flagged this, the EPSS places this in the 97th percentile for exploitation likelihood relative to all tracked CVEs, and real-world abuse of OpenClaw's execution ecosystem has already been documented in AIID incident #1368. Organizations running OpenClaw versions prior to 2026.2.19 should patch immediately; where patching is delayed, harden agent launch environments by enforcing immutable PATH configurations and auditing process environment variables at gateway startup.
What is the risk?
High risk for organizations deploying OpenClaw-based AI agents, particularly those granting agents tool-execution permissions. The attack requires only low privilege and no user interaction, making it trivially automatable once PATH influence is established. The EPSS 97th percentile indicates significantly elevated exploitation likelihood despite the low absolute probability. The local attack vector limits remote exploitation, but AI agent gateways are often accessible via CI/CD pipelines, developer workstations, and orchestration environments where PATH manipulation is feasible. The 396 other CVEs in the same package suggest a historically high-vulnerability codebase warranting elevated scrutiny.
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.19 or later (see commit 28bac46).
-
Workaround if patching is delayed
Enforce a fixed, immutable PATH for the OpenClaw gateway process at the process supervisor or systemd unit level; do not inherit PATH from user environments.
-
Detect
Audit process launch environment variables for OpenClaw processes; alert on PATH entries containing non-standard directories. Monitor for execution of allowlisted binaries (jq, curl, etc.) from unexpected filesystem paths using EDR process tree inspection.
-
Principle of least privilege
Run OpenClaw gateway processes in isolated containers with read-only filesystem mounts outside explicitly approved binary directories.
-
Supply chain hygiene
Verify checksums of allowlisted binaries at agent startup rather than relying solely on name-based validation.
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-32015?
CVE-2026-32015 is a CWE-426 (Untrusted Search Path) vulnerability in OpenClaw's `tools.exec.safeBins` allowlist that validates executable names but not their resolved filesystem paths, allowing a low-privileged attacker who controls the agent process PATH to substitute a trojan binary with an allowlisted name (e.g., `jq`) and achieve arbitrary code execution. AI agent frameworks like OpenClaw routinely run with elevated permissions and access sensitive data sources, meaning a successful exploit grants an attacker a highly privileged execution context within the AI pipeline. Although no public exploit exists and CISA KEV has not flagged this, the EPSS places this in the 97th percentile for exploitation likelihood relative to all tracked CVEs, and real-world abuse of OpenClaw's execution ecosystem has already been documented in AIID incident #1368. Organizations running OpenClaw versions prior to 2026.2.19 should patch immediately; where patching is delayed, harden agent launch environments by enforcing immutable PATH configurations and auditing process environment variables at gateway startup.
Is CVE-2026-32015 actively exploited?
No confirmed active exploitation of CVE-2026-32015 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-32015?
1. **Patch immediately**: Upgrade OpenClaw to 2026.2.19 or later (see commit 28bac46). 2. **Workaround if patching is delayed**: Enforce a fixed, immutable PATH for the OpenClaw gateway process at the process supervisor or systemd unit level; do not inherit PATH from user environments. 3. **Detect**: Audit process launch environment variables for OpenClaw processes; alert on PATH entries containing non-standard directories. Monitor for execution of allowlisted binaries (jq, curl, etc.) from unexpected filesystem paths using EDR process tree inspection. 4. **Principle of least privilege**: Run OpenClaw gateway processes in isolated containers with read-only filesystem mounts outside explicitly approved binary directories. 5. **Supply chain hygiene**: Verify checksums of allowlisted binaries at agent startup rather than relying solely on name-based validation.
What systems are affected by CVE-2026-32015?
This vulnerability affects the following AI/ML architecture patterns: agent frameworks, agentic pipelines, RAG pipelines, model serving.
What is the CVSS score for CVE-2026-32015?
CVE-2026-32015 has a CVSS v3.1 base score of 7.8 (HIGH). The EPSS exploitation probability is 0.13%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0050 Command and Scripting Interpreter AML.T0053 AI Agent Tool Invocation AML.T0074 Masquerading AML.T0107 Exploitation for Defense Evasion AML.T0112.000 Local AI Agent Compliance Controls Affected
What are the technical details?
Original Advisory
OpenClaw versions 2026.1.21 prior to 2026.2.19 contain a path hijacking vulnerability in tools.exec.safeBins that allows attackers to bypass allowlist checks by controlling process PATH resolution. Attackers who can influence the gateway process PATH or launch environment can execute trojan binaries with allowlisted names, such as jq, circumventing executable validation controls.
Exploitation Scenario
An attacker with low-privilege access to the host running an OpenClaw AI agent gateway (e.g., via a compromised developer workstation or misconfigured CI runner) creates a malicious binary named `jq` in a user-writable directory such as `~/.local/bin`. They then modify the gateway process's PATH—either via shell profile injection, environment variable manipulation in a job definition, or a malicious wrapper script—so that `~/.local/bin` precedes `/usr/bin`. When OpenClaw next invokes `jq` as part of its normal agent tool pipeline (e.g., parsing API responses), `safeBins` validates the name 'jq' against the allowlist (passing), but resolves execution to the trojan binary. The trojan executes with the agent's OS privileges, establishing a reverse shell or exfiltrating cloud credentials, model artifacts, or secrets stored in the agent's environment.
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:L/PR:L/UI:N/S:U/C:H/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