{"id":"CVE-2026-4039","aliases":["CVE-2026-4039","GHSA-82g8-464f-2mv7"],"related":[],"kind":"vulnerability","state":"published","title":"OpenClaw Skill Env applySkillConfigenvOverrides code injection","summary":"A vulnerability was determined in OpenClaw 2026.2.19-2. This vulnerability affects the function applySkillConfigenvOverrides of the component Skill Env Handler. Executing a manipulation can lead to code injection. It is possible to launch the attack remotely. Upgrading to version 2026.2.21-beta.1 is able to resolve this issue. This patch is called 8c9f35cdb51692b650ddf05b259ccdd75cc9a83c. It is recommended to upgrade the affected component.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability was determined in OpenClaw 2026.2.19-2. This vulnerability affects the function applySkillConfigenvOverrides of the component Skill Env Handler. Executing a manipulation can lead to code injection. It is possible to launch the attack remotely. Upgrading to version 2026.2.21-beta.1 is able to resolve this issue. This patch is called 8c9f35cdb51692b650ddf05b259ccdd75cc9a83c. It is recommended to upgrade the affected component.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se determinó una vulnerabilidad en OpenClaw 2026.2.19-2. Esta vulnerabilidad afecta la función applySkillConfigenvOverrides del componente Gestor de Entorno de Habilidades. Ejecutar una manipulación puede conducir a la inyección de código. Es posible lanzar el ataque remotamente. Actualizar a la versión 2026.2.21-beta.1 puede resolver este problema. Este parche se llama 8c9f35cdb51692b650ddf05b259ccdd75cc9a83c. Se recomienda actualizar el componente afectado.","source":"nvd"}],"published":"2026-02-27T21:36:17.000Z","modified":"2026-06-17T10:55:53.147Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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:X","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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:X","score":5.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C","score":6.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:X/RL:O/RC:C","score":6.3,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P/E:ND/RL:OF/RC:C","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-15","CWE-74","CWE-94","CWE-1341"],"affected":[{"ranges":[{"version":"2026.2.19-2","status":"affected"},{"version":"2026.2.21-beta.1","status":"unaffected"}],"product":"OpenClaw","cpe":"cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2026.2.21"}],"ecosystem":"npm","package":"openclaw","purl":"pkg:npm/openclaw","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2026.2.21"}],"vendor":"openclaw","product":"openclaw","cpe":"cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://vuldb.com/?id.350651","tags":["technical-description","third-party-advisory","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://vuldb.com/?ctiid.350651","tags":["permissions-required","signature","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://vuldb.com/?submit.769580","tags":["third-party-advisory","vdb-entry"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-82g8-464f-2mv7","tags":["mitigation","related","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/8c9f35cdb51692b650ddf05b259ccdd75cc9a83c","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/releases/tag/v2026.2.21-beta.1","tags":["patch","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openclaw/openclaw/","tags":["product"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4039","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw/releases/tag/v2026.2.21","tags":["web"],"sources":["ghsa"]}],"credits":["nedlir (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-12T13:10:16.297Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-4039","url":"https://www.cve.org/CVERecord?id=CVE-2026-4039","licence":"CVE Terms of Use","modified":"2026-03-12T13:10:51.077Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-82g8-464f-2mv7","url":"https://github.com/advisories/GHSA-82g8-464f-2mv7","licence":"CC-BY-4.0","modified":"2026-03-14T05:26:20.272Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-4039","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4039","licence":"Public domain","modified":"2026-06-17T10:55:53.147Z"}],"updatedAt":"2026-11-25T22:59:15.823Z","epss":{"score":0.00363,"percentile":0.32091,"date":"2026-12-02T12:00:21.000Z"}}