Skip to main content
Vulnerability Database/CVE-2026-108156

CVE-2026-108156: LobsterAI Path Traversal Vulnerability

CVE-2026-108156 is a path traversal flaw in LobsterAI that allows attackers to delete arbitrary directories during skill uninstallation. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-108156 Overview

CVE-2026-108156 is an external control of file path vulnerability [CWE-73] in LobsterAI versions 2026.5.27 through 2026.9.23. The flaw resides in the skills:delete Inter-Process Communication (IPC) handler, which trusts the openclawSourceDir value stored inside a skill's _meta.json file during uninstall. An attacker who convinces a user to install a crafted skill can trigger recursive deletion of arbitrary user-writable directories when the skill is uninstalled. The security scanner does not inspect _meta.json, so malicious path values pass unchecked. Impacted targets include the user's home directory and any filesystem location the LobsterAI process can write to.

Critical Impact

Uninstalling a malicious LobsterAI skill can recursively delete arbitrary user-owned directories, including the user's home directory.

Affected Products

  • LobsterAI 2026.5.27 through 2026.9.23
  • LobsterAI Electron desktop application (src/main/ipcHandlers/skills/handlers.ts)
  • LobsterAI SkillManager component (src/main/skills/skillManager.ts)

Discovery Timeline

  • 2026-10-09 - CVE-2026-108156 published to the National Vulnerability Database (NVD)
  • 2026-10-14 - CVE-2026-108156 last modified in NVD

Technical Details for CVE-2026-108156

Vulnerability Analysis

LobsterAI stores metadata for each installed skill in a _meta.json file inside the skill's directory. During installation of OpenClaw-sourced skills, the application writes an openclawSourceDir field that records the original source path, intending to clean it up during uninstall. The skills:delete IPC handler reads this field and passes it directly to a recursive filesystem removal routine. Because the field is user-controlled through the skill package contents, an attacker can set openclawSourceDir to any path the user process can write to. The security scanner that validates skills before installation never inspects _meta.json, so the hostile value is not detected at install time.

Root Cause

The root cause is external control of a filesystem path. The uninstall logic trusts attacker-supplied data from _meta.json without canonicalization, allowlisting, or containment to the skill's own directory tree. Combined with recursive deletion semantics, this converts a benign cleanup step into an arbitrary directory removal primitive.

Attack Vector

Exploitation requires local user interaction. The user must install the crafted skill and later uninstall it. On uninstall, LobsterAI reads openclawSourceDir from the skill's _meta.json and recursively deletes the referenced directory. An attacker can target the user's home directory, project workspaces, or configuration directories to destroy data.

typescript
// Vendor patch: src/main/skills/skillManager.ts
// fix(skills): never delete paths named by a skill's _meta.json
        const targetDir = path.join(root, entry.skillKey);
        if (fs.existsSync(targetDir)) continue;
        cpRecursiveSync(srcDir, targetDir);
-        // Record OpenClaw source path so we can remove it on delete
-        try {
-          const metaPath = path.join(targetDir, '_meta.json');
-          const meta = fs.existsSync(metaPath)
-            ? JSON.parse(fs.readFileSync(metaPath, 'utf8'))
-            : {};
-          meta.openclawSourceDir = srcDir;
-          fs.writeFileSync(metaPath, JSON.stringify(meta, null, 2) + '\n', 'utf8');
-        } catch { /* best-effort */ }
        // Respect disabled state from OpenClaw
        if (entry.disabled) {
          const state = this.loadSkillStateMap();

Source: GitHub Commit 82fdfe10

Detection Methods for CVE-2026-108156

Indicators of Compromise

  • Presence of an openclawSourceDir field inside any installed skill's _meta.json pointing outside the skill directory, such as $HOME, project folders, or configuration directories.
  • Unexpected mass deletion of files in a user's home directory following a LobsterAI skill uninstall event.
  • LobsterAI skill packages originating from untrusted sources containing a pre-populated _meta.json with an openclawSourceDir value.

Detection Strategies

  • Scan user profiles for LobsterAI skill directories and parse each _meta.json for openclawSourceDir values that reference paths outside the skill's own install root.
  • Monitor filesystem telemetry for recursive directory removals performed by the LobsterAI process in paths outside its application data directory.
  • Correlate LobsterAI uninstall events with subsequent bulk file deletions in user directories.

Monitoring Recommendations

  • Enable endpoint telemetry for file deletion events parented to the LobsterAI binary and alert on deletions outside its expected install and data directories.
  • Audit skill installation sources and restrict installations to vetted, internal skill registries where feasible.
  • Track process behavior for the Electron main process spawning recursive unlink or rm-equivalent operations on user data paths.

How to Mitigate CVE-2026-108156

Immediate Actions Required

  • Upgrade LobsterAI to a version later than 2026.9.23 that includes commit 82fdfe10.
  • Uninstall any skills from untrusted sources through filesystem removal rather than the in-app uninstall flow until patched.
  • Inspect each installed skill's _meta.json and remove or sanitize any openclawSourceDir field that references a path outside the skill directory.

Patch Information

The vendor patch is published in GitHub Commit 82fdfe10. The fix removes the logic that writes openclawSourceDir into _meta.json and ensures the uninstall handler no longer deletes paths named by a skill's metadata. See the VulnCheck Security Advisory and GitHub Issue #2793 for additional context.

Workarounds

  • Do not install LobsterAI skills from untrusted or unverified sources until the application is upgraded.
  • Manually remove the openclawSourceDir key from _meta.json in every installed skill directory before using the in-app uninstall feature.
  • Run LobsterAI under a least-privileged user account that lacks write access to sensitive data directories.
bash
# Audit installed skills for attacker-controlled openclawSourceDir values
find "$HOME" -type f -name '_meta.json' -path '*/skills/*' \
  -exec grep -l 'openclawSourceDir' {} \;

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.