CVE-2026-32920 Overview
OpenClaw before version 2026.3.12 contains an arbitrary code execution vulnerability in its workspace plugin auto-discovery mechanism. The application automatically discovers and loads plugins from the .OpenClaw/extensions/ directory without explicit trust verification, enabling attackers to execute malicious code when users run OpenClaw from a directory containing a crafted workspace plugin.
This vulnerability is particularly dangerous in development workflows where users frequently clone repositories from untrusted sources. An attacker can embed malicious plugins in a repository that execute automatically when a victim runs OpenClaw from the cloned directory.
Critical Impact
Attackers can achieve arbitrary code execution by including crafted workspace plugins in cloned repositories, compromising systems when users run OpenClaw from the affected directory without any user interaction or trust confirmation.
Affected Products
- OpenClaw versions prior to 2026.3.12
- OpenClaw Node.js package (all vulnerable versions)
- Systems with OpenClaw configured for automatic workspace plugin discovery
Discovery Timeline
- 2026-03-31 - CVE-2026-32920 published to NVD
- 2026-04-02 - Last updated in NVD database
Technical Details for CVE-2026-32920
Vulnerability Analysis
This vulnerability falls under CWE-829 (Inclusion of Functionality from Untrusted Control Sphere), which occurs when an application imports or executes code from a source that is outside of its trust boundary without proper verification.
The core issue lies in OpenClaw's design decision to automatically load plugins from workspace directories without requiring explicit user approval or signature verification. When a user executes OpenClaw from any directory, the application scans for and loads any plugins found in the .OpenClaw/extensions/ subdirectory, treating them as trusted code.
This design creates a significant attack surface, particularly in scenarios involving:
- Cloning Git repositories containing malicious .OpenClaw/extensions/ directories
- Extracting archives with embedded malicious plugins
- Working in shared directories where other users can plant malicious extensions
Root Cause
The root cause is the absence of trust verification in the plugin loading mechanism. OpenClaw's extension loader blindly trusts any code present in the workspace extensions directory, assuming that if a plugin exists in the expected location, it should be loaded and executed. This violates the principle of least privilege and fails to implement proper code signing or user confirmation for untrusted code execution.
The vulnerable behavior stems from prioritizing convenience over security, allowing seamless workspace-specific customization without considering the supply chain risks inherent in loading arbitrary code from potentially untrusted sources.
Attack Vector
The attack leverages a local attack vector where an adversary prepares a malicious repository or archive containing crafted plugins in the .OpenClaw/extensions/ directory. The attack chain proceeds as follows:
- The attacker creates a malicious plugin designed to execute arbitrary code
- The plugin is placed within a .OpenClaw/extensions/ directory in a repository or archive
- The victim clones the repository or extracts the archive to their local system
- When the victim runs OpenClaw from within that directory, the malicious plugin is automatically discovered and loaded
- The malicious code executes with the privileges of the user running OpenClaw
No user interaction beyond running OpenClaw is required, and no warning or confirmation dialog is displayed to alert the user about the untrusted plugin being loaded.
The vulnerability mechanism involves automatic plugin discovery from workspace directories without trust verification. When OpenClaw initializes, it scans the current working directory for the .OpenClaw/extensions/ subdirectory and loads any plugins found there. See the GitHub Security Advisory for additional technical details.
Detection Methods for CVE-2026-32920
Indicators of Compromise
- Presence of unexpected .OpenClaw/extensions/ directories in cloned repositories or project folders
- Unknown or suspicious plugin files within workspace extension directories
- Unusual process activity spawned by OpenClaw processes
- Network connections or file system modifications initiated during OpenClaw startup
- Log entries indicating plugin loading from workspace directories
Detection Strategies
- Implement file integrity monitoring on development workstations to detect creation of .OpenClaw/extensions/ directories
- Configure endpoint detection to alert on child processes spawned by OpenClaw that exhibit suspicious behavior
- Use repository scanning tools to identify .OpenClaw/extensions/ directories in incoming code
- Monitor for process hollowing or injection techniques that may be used by malicious plugins
- Deploy behavioral analysis to detect anomalous OpenClaw execution patterns
Monitoring Recommendations
- Enable detailed logging for OpenClaw plugin loading events to track which extensions are being loaded
- Implement centralized log collection for development environments to correlate potential exploitation attempts
- Configure SIEM rules to alert on OpenClaw processes accessing sensitive system resources
- Establish baseline behavior for OpenClaw to detect deviations that may indicate malicious plugin execution
- Monitor network traffic from development machines for unusual connections during OpenClaw usage
How to Mitigate CVE-2026-32920
Immediate Actions Required
- Upgrade OpenClaw to version 2026.3.12 or later immediately
- Audit existing repositories and projects for unexpected .OpenClaw/extensions/ directories
- Remove any untrusted or unknown plugins from workspace extension directories
- Review recently cloned repositories for potential malicious content
- Consider temporarily disabling OpenClaw usage until patches are applied
Patch Information
The vulnerability has been addressed in OpenClaw version 2026.3.12. The patch introduces trust verification for workspace plugins, requiring explicit user confirmation before loading extensions from workspace directories. Users should upgrade to this version or later to remediate the vulnerability.
For detailed patch information and upgrade instructions, refer to the GitHub Security Advisory. Additional technical analysis is available from the VulnCheck Advisory on OpenClaw.
Workarounds
- Manually remove or rename .OpenClaw/extensions/ directories in untrusted repositories before running OpenClaw
- Implement pre-clone hooks in Git to scan for and warn about .OpenClaw/extensions/ directories
- Use containerized or sandboxed environments when working with untrusted repositories
- Configure file system permissions to prevent creation of extension directories in workspace folders
- Establish organizational policies requiring review of cloned repositories before running development tools
# Configuration example
# Pre-clone script to scan for potentially malicious OpenClaw extension directories
# Add to your Git workflow or CI/CD pipeline
# Check for .OpenClaw/extensions directory in repository
find . -type d -name ".OpenClaw" -exec test -d "{}/extensions" \; -print 2>/dev/null
# Remove untrusted workspace extensions if found
rm -rf ./.OpenClaw/extensions/
# Set restrictive permissions to prevent workspace extension creation
chmod 000 ./.OpenClaw/extensions/ 2>/dev/null || true
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.


