CVE-2026-4039: OpenClaw · Skill env override host env injection via applySkillConfigEnvOverrides (defense-in-depth)
Affects openclaw-cliSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium : upgrade to 2026.7.1 when convenient.
Data as of 17 Nov 2026, 20:25 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 2026.7.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:XExploitation evidence
Disclosed: evidence found.
CVE published 12 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Upgrade openclaw-cli to 2026.7.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewopenclaw-clipkg:brew/openclaw-cliOther threats | Affected
| Fixed in
|
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 in OpenClaw CLI version 2026.2.21 that sanitizes skill environment overrides and blocks dangerous host environment keys including NODE_OPTIONS. Users should upgrade to version 2026.2.21 or later to remediate this vulnerability.
Description
The OpenClaw CLI had a vulnerability in the applySkillConfigEnvOverrides function where environment variables from skill configurations were copied into the host process environment without proper safety checks. This allowed injection of dangerous process-level variables like NODE_OPTIONS, potentially affecting runtime and child process behavior. The vulnerability requires an attacker to have the ability to modify local OpenClaw configuration files. A fix was released in version 2026.2.21 that sanitizes these environment overrides and blocks dangerous keys.
References
- github.com/openclaw/openclaw/security/advisories/GHSA-82g8-464f-2mv7 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-4039 (opens in a new tab)
- github.com/openclaw/openclaw/commit/8c9f35cdb51692b650ddf05b259ccdd75cc9a83c (opens in a new tab)
- github.com/openclaw/openclaw (opens in a new tab)
- github.com/openclaw/openclaw/releases/tag/v2026.2.21 (opens in a new tab)