NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · OpenClaw

CVE-2026-43584: OpenClaw: Exec environment denylist missed high-risk interpreter startup variables

highCVSS 4.0 8.7 · 3.1 8.8GHSA-vfp4-8x56-j7c5

OpenClaw before 2026.4.10 blocks dangerous environment variables for exec with a denylist, but the list missed interpreter startup variables such as `VIMINIT`, `EXINIT`, `LUA_INIT` and `HOSTALIASES`. A caller who can supply environment overrides can change what a spawned command runs or where it connects. Upgrade the `openclaw` npm package to 2026.4.10 or later.

Published Apr 17, 2026 · Updated May 12, 2026 · Analysis Oct 29, 2026

What an attacker can do

OpenClaw runs commands for its agent and filters the environment passed to them with a host environment security policy. That policy is a denylist (CWE-184, incomplete list of disallowed inputs). Some variables make an interpreter run code at startup. VIMINIT and EXINIT hold commands that vim and ex run when they start. LUA_INIT holds Lua code that the Lua interpreter runs at launch. HOSTALIASES changes how hostnames resolve for some programs, so it can steer network connections.

The advisory says an operator-supplied environment override could use these variables to influence downstream execution or network behavior. The CVSS vector shows a network attack with low privileges and no user interaction, and high impact on confidentiality, integrity and availability. So the attacker needs an account or channel that is allowed to submit environment overrides to exec, not just any chat message.

In practice, a lower-trust operator or integration could turn an allowed command into code execution under the OpenClaw host user, or redirect a command's traffic. Teams that let several people or automations drive one OpenClaw gateway are the exposed ones.

Who is affected

The openclaw npm package at versions below 2026.4.10. Check the installed version:

npm ls -g openclaw

The advisory says the fix first shipped in the stable tag v2026.4.10 and that 2026.4.14 includes it. Risk is highest where users other than the host owner can pass environment overrides to exec.

openclaw

Ecosystem
npm
Affected
< 2026.4.10
Fixed in
2026.4.10
Check
npm ls openclaw

How to fix it

Upgrade to 2026.4.10 or newer. The latest release named in the advisory, 2026.4.14, includes the fix.

npm install -g openclaw@latest

The fix (PR #63277, commit 2d126fc) expands the host environment security policy denylist to cover these and related high-risk variables, with regression tests. The advisory lists no workaround. Until you upgrade, limit who may supply environment overrides to exec.

How to tell if you were hit

Search exec logs and session records for environment overrides that set VIMINIT, EXINIT, LUA_INIT or HOSTALIASES, and for commands launched with them. Check for vim, ex or lua processes started by the OpenClaw host user that nobody expected, and for hostname alias files created near such runs. The advisory gives no log signature. If an untrusted operator had exec access on an affected version, review commands they ran.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Summary

Exec environment denylist missed high-risk interpreter startup variables.

Affected Packages / Versions

  • Package: openclaw
  • Ecosystem: npm
  • Affected versions: < 2026.4.10
  • Patched versions: >= 2026.4.10

Impact

The exec environment policy missed interpreter startup variables such as VIMINIT, EXINIT, LUA_INIT, and HOSTALIASES, allowing operator-supplied environment overrides to influence downstream execution or network behavior.

Technical Details

The fix expands the host environment security policy denylist to cover these and related high-risk environment variables, with regression coverage.

Fix

The issue was fixed in #63277. The first stable tag containing the fix is v2026.4.10, and [email protected] includes the fix.

Fix Commit(s)

  • 2d126fc62343a7b6895351f96e4e1474bc358140
  • PR: #63277

Release Process Note

Users should upgrade to openclaw 2026.4.10 or newer. The latest npm release, 2026.4.14, already includes the fix.

Credits

Thanks to @feiyang666 of Tencent zhuque Lab (https://github.com/Tencent/AI-Infra-Guard) for reporting this issue.

Credited to feiyang666.

Questions

Which OpenClaw versions are affected by CVE-2026-43584?

All openclaw npm versions below 2026.4.10. Version 2026.4.10 is the first stable tag with the fix, and 2026.4.14 includes it.

Which variables did the denylist miss?

The advisory names VIMINIT, EXINIT, LUA_INIT and HOSTALIASES, and says the fix also covers related high-risk variables.

Does the attacker need to be logged in?

They need low privileges, per the CVSS vector. They must be able to supply environment overrides to exec, which the advisory calls operator-supplied.

Is this exploited in the wild?

No source I read says so, and the entry has no CISA KEV data. The EPSS score is 0.0039.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More OpenClaw vulnerabilities

All OpenClaw entries