Skip to main content
VulnerabilityPublished Updated

Openclaw cli: OpenClaw shell-env fallback trusted startup env and could execute attacker-influenced login-shell paths

Affects openclaw-cliSource GCVE Database

0

CVSS 5.3 Medium : upgrade to 2026.7.1 when convenient.

Data as of 17 Nov 2026, 19:05 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2026.7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

What to do

Upgrade openclaw-cli to 2026.7.1.

Affected software

ProductAffectedFixed in
Homebrewopenclaw-clipkg:brew/openclaw-cliOther threatsAffected
  • <2026.7.1
Fixed in
  • 2026.7.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available and planned for release in OpenClaw CLI version 2026.2.22. The fix hardens environment variable handling by blocking SHELL, HOME, and ZDOTDIR during configuration environment ingestion and sanitizes the shell fallback execution environment. Users should upgrade to version 2026.2.22 or later once released. Until then, avoid running OpenClaw CLI in environments where untrusted users can influence environment or configuration inputs that affect shell fallback execution. No additional mitigations are indicated by the vendor advisory.

Description

OpenClaw CLI versions from 2026.1.5 up to and including 2026.2.21-2 contain a vulnerability in the shell environment fallback mechanism. The issue involves trusting environment variables such as SHELL, HOME, and ZDOTDIR during startup, which could allow execution of attacker-influenced login shell startup paths before environment keys are loaded. This can lead to local code execution if an attacker can influence environment or configuration input. The vulnerability is not exploitable remotely and depends on crossing local trusted operator boundaries. A fix is available in the mainline and planned for release in version 2026.2.22, which hardens environment variable handling and sanitizes the shell fallback execution environment.

References

Community reviews

Loading reviews…