/

CVE-2026-101885

Severity:

HIGH RISK

(7.8)

Path Traversal (CWE-22) in ZeroClaw WASM Plugin Installer

CVE-2026-101885

Deferred

Vulnerability type

Category:

Path Traversal

CWE:

CWE-22

Impact:

Arbitrary File Write and Potential Code Execution

Severity:

HIGH RISK

(7.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

ZeroClaw builds using the plugins-wasm feature contain a path traversal flaw in plugin installation because the wasm_path manifest field is not adequately validated. An attacker who convinces a user to install a crafted plugin may write files outside the intended plugins directory, potentially modifying shell startup files and enabling code execution.

Affected context

The vulnerability occurs in ZeroClaw installations that support WebAssembly plugin installation and process plugin manifests containing a wasm_path field. Risk is present when crafted plugin content can influence the destination path and the installation process has write access beyond the designated plugins directory.

Exploit preconditions

  • Attack surface: ZeroClaw's WASM plugin installation workflow
  • Required access: The ability to persuade a user or operator to install a crafted plugin
  • Trigger point: Processing the wasm_path value during plugin installation
  • Why exploitation is possible: Insufficient path validation may allow a manifest-controlled path to resolve outside the intended plugins directory
  • Environmental dependency: The installer must have permission to write to the targeted filesystem location

Why this happens

The underlying bug is improper neutralization of path elements supplied through a plugin manifest. When the wasm_path value is trusted without canonicalization and containment checks, traversal sequences or equivalent path manipulation can redirect file writes outside the approved installation directory. This maps to CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly known as path traversal.

Potential impact

  • An attacker may overwrite arbitrary files accessible to the installer
  • Shell startup files or other user-controlled execution paths could be modified
  • The affected user account may execute attacker-controlled code
  • Plugin integrity and local application data could be compromised
  • A compromised account could enable further local or network-based attacks

General mitigation guidance

Mitigation generally focuses on enforcing a strict destination boundary for all plugin files and reducing trust in manifest-controlled paths.

Common defensive patterns include:

  • Canonicalizing candidate paths before use and verifying they remain within the intended plugins directory
  • Rejecting absolute paths, traversal components, symbolic-link escapes, and unexpected path formats
  • Deriving output filenames from trusted application state rather than accepting arbitrary manifest destinations
  • Applying strict manifest schemas and allowlists for supported plugin fields
  • Installing plugins with least-privilege filesystem permissions and isolated service accounts
  • Treating third-party plugins as untrusted and requiring review or provenance checks before installation
  • Using controlled, non-writable locations for shell configuration and other sensitive startup files

How teams detect issues like this

Organizations can identify this class of issue through:

  • Static analysis rules for path joins that use manifest or archive values without canonical containment checks
  • Code review searches for absolute paths, parent-directory components, and unchecked filesystem writes
  • Tests covering traversal, symlink, canonicalization, and platform-specific path edge cases
  • Runtime monitoring for plugin installers writing outside approved directories
  • File integrity policies covering shell startup files and other sensitive user configuration
  • CI enforcement requiring path-boundary tests and security review for plugin installation changes

Sources

SourceLink
github.comgithub.com/zeroclaw-labs/zeroclaw/blob/v0.8.4/crates/zeroclaw-plugins/src/host.rs#L238-L273
github.comgithub.com/zeroclaw-labs/zeroclaw/commit/432e034d3cb024610d5916a2f328678d151c1dd5
github.comgithub.com/zeroclaw-labs/zeroclaw/releases/tag/v0.8.5
github.comgithub.com/zeroclaw-labs/zeroclaw/security/advisories/GHSA-93f6-34w8-5g98
vulncheck.comvulncheck.com/advisories/zeroclaw-before-0.8.5-path-traversal-via-plugin-manifest-wasm-path

Frequently asked

questions

It is generally not a direct network-only exploit. Exploitation typically depends on an attacker convincing a user or operator to install a specially crafted plugin.

The attacker needs a way to distribute or promote a crafted plugin and have it installed. The impact also depends on the filesystem permissions available to the ZeroClaw installation process.

Treat manifest paths as untrusted, canonicalize them, and confirm that every resolved destination remains within a dedicated installation directory. Reject absolute paths, traversal components, and link-based escapes.

Use strict plugin manifest schemas, isolate plugin installation with least privilege, test path-boundary conditions in CI, and monitor sensitive files for unexpected changes.

Find out what's already
exploitable in your codebase.