Description
OpenClaw before 2026.3.24 contains an arbitrary code execution vulnerability in local plugin and hook installation that allows attackers to execute malicious code by crafting a .npmrc file with a git executable override. During npm install execution in the staged package directory, attackers can leverage git dependencies to trigger execution of arbitrary programs specified in the attacker-controlled .npmrc configuration file.
Problem types
CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data
Product status
Any version before 2026.3.24
2026.3.24 (semver)
Credits
妙尽璇机 (@ChangeYourWay)
References
github.com/...enclaw/security/advisories/GHSA-m3mh-3mpg-37hw
github.com/...enclaw/security/advisories/GHSA-m3mh-3mpg-37hw (GitHub Security Advisory (GHSA-m3mh-3mpg-37hw))
www.vulncheck.com/...npmrc-in-local-plugin-hook-installation (VulnCheck Advisory: OpenClaw < 2026.3.24 - Arbitrary Code Execution via .npmrc in Local Plugin/Hook Installation)