{"id":"CVE-2026-4039","aliases":["GHSA-82g8-464f-2mv7"],"url":"https://o3.security/vulnerability/CVE-2026-4039","summary":"OpenClaw Skill Env applySkillConfigenvOverrides code injection","details":"### Summary\n`applySkillConfigEnvOverrides` previously copied `skills.entries.*.env` values into the host `process.env` without applying the host env safety policy.\n\n### Impact\nIn affected versions, dangerous process-level variables such as `NODE_OPTIONS` could be injected when unset, which can influence runtime/child-process behavior.\n\n### Required attacker capability\nAn attacker must be able to modify OpenClaw local state/config (for example `~/.openclaw/openclaw.json`) to set `skills.entries.<skill>.env` or related skill config values.\n\n### Remediation\nFixed in `2026.2.21` by sanitizing skill env overrides and blocking dangerous host env keys (including `NODE_OPTIONS`) before applying overrides, with regression tests covering blocked dangerous keys.\n\n## Fix Commit(s)\n- `8c9f35cdb51692b650ddf05b259ccdd75cc9a83c`\n\nFound using [MCPwner](https://github.com/Pigyon/MCPwner)","published":"2026-03-12T12:02:10.143Z","modified":"2026-08-12T03:51:18.134856222Z","cvss":null,"epss":{"score":0.00316,"percentile":0.2459,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"openclaw","fixedVersion":"2026.2.21"}],"fix":{"url":"https://github.com/openclaw/openclaw/commit/8c9f35cdb51692b650ddf05b259ccdd75cc9a83c","label":"openclaw/openclaw@8c9f35c"},"references":[{"type":"WEB","url":"https://github.com/openclaw/openclaw/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/4xxx/CVE-2026-4039.json"},{"type":"ADVISORY","url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-82g8-464f-2mv7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4039"},{"type":"ADVISORY","url":"https://vuldb.com/?id.350651"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.769580"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.350651"},{"type":"FIX","url":"https://github.com/openclaw/openclaw/commit/8c9f35cdb51692b650ddf05b259ccdd75cc9a83c"},{"type":"FIX","url":"https://github.com/openclaw/openclaw/releases/tag/v2026.2.21-beta.1"},{"type":"PACKAGE","url":"https://github.com/openclaw/openclaw"},{"type":"WEB","url":"https://github.com/openclaw/openclaw/releases/tag/v2026.2.21"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:18.134856222Z"}}