ADVISORIES

GitHub Advisory Database

GHSA-mc68-q9jw-2h3v

OpenClaw/Clawdbot Docker Execution has Authenticated Command Injection via PATH Environment Variable

Details

Summary

A Command Injection vulnerability existed in Clawdbot’s Docker sandbox execution mechanism due to unsafe handling of the PATH environment variable when constructing shell commands.

An authenticated user able to control environment variables could influence command execution within the container context. This issue has been fixed and regression tests have been added to prevent reintroduction.

Impact

In environments where Docker sandbox mode was enabled, authenticated users capable of supplying environment variables could affect the behavior of commands executed inside the container.

This could lead to:

  • Execution of unintended commands inside the container
  • Access to the container filesystem and environment variables
  • Exposure of sensitive data
  • Increased risk in misconfigured or privileged container environments

Affected packages

EcosystemPackageAffected versions
npmclawdbot
All versions before 2026.1.29 (fixed in 2026.1.29)

References