{"id":"CVE-2026-44995","aliases":["CVE-2026-44995","GHSA-mj59-h3q9-ghfh"],"related":[],"kind":"vulnerability","state":"published","title":"OpenClaw < 2026.4.20 - Arbitrary Code Execution via MCP stdio Environment Variables","summary":"OpenClaw before 2026.4.20 contains an improper environment variable validation vulnerability in MCP stdio server configuration that allows attackers to execute arbitrary code. Malicious workspace configurations can pass dangerous startup variables like NODE_OPTIONS, LD_PRELOAD, or BASH_ENV to spawned MCP server processes, enabling code injection when operators start sessions using those servers.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenClaw before 2026.4.20 contains an improper environment variable validation vulnerability in MCP stdio server configuration that allows attackers to execute arbitrary code. Malicious workspace configurations can pass dangerous startup variables like NODE_OPTIONS, LD_PRELOAD, or BASH_ENV to spawned MCP server processes, enabling code injection when operators start sessions using those servers.","source":"cvelist"},{"lang":"en","text":"## Affected Packages / Versions\n\n- Package: `openclaw` (npm)\n- Affected versions: `< 2026.4.20`\n- Patched version: `2026.4.20`\n\n## Impact\n\nWorkspace MCP stdio configuration could pass dangerous process-startup environment variables such as `NODE_OPTIONS`, `LD_PRELOAD`, or `BASH_ENV` to the spawned MCP server process. In a malicious workspace, this could make the MCP child load attacker-controlled code when the operator starts a session that uses that MCP server.\n\nThe impact is limited to local/workspace trust boundaries and requires the operator to run OpenClaw in a workspace containing the malicious MCP configuration. Severity is therefore medium, not high/critical.\n\n## Fix\n\nOpenClaw now filters MCP stdio environment entries through the host environment safety denylist before spawning stdio MCP servers.\n\nFix commits:\n\n- `62fa5071896e95edc7f67d1cebc70a2859e283af`\n- `85d86ebc4bf3d2226d39d132a484f4f7a299fa1b`\n\n## Release\n\nFixed in OpenClaw `2026.4.20`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenClaw anterior a 2026.4.20 contiene una vulnerabilidad de validación de variable de entorno incorrecta en la configuración del servidor stdio de MCP que permite a los atacantes ejecutar código arbitrario. Las configuraciones de espacio de trabajo maliciosas pueden pasar variables de inicio peligrosas como NODE_OPTIONS, LD_PRELOAD o BASH_ENV a procesos de servidor MCP generados, lo que permite la inyección de código cuando los operadores inician sesiones usando esos servidores.","source":"nvd"}],"published":"2026-04-25T23:48:03.000Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":5.4,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"MEDIUM"}],"cwes":["CWE-427","CWE-454","CWE-829"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2026.4.20","status":"affected"},{"type":"semver","version":"2026.4.20","status":"unaffected"}],"vendor":"OpenClaw","product":"OpenClaw","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2026.4.20"}],"ecosystem":"npm","package":"openclaw","purl":"pkg:npm/openclaw","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2026.4.20"}],"vendor":"openclaw","product":"openclaw","cpe":"cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openclaw/openclaw/security/advisories/GHSA-mj59-h3q9-ghfh","tags":["third-party-advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/62fa5071896e95edc7f67d1cebc70a2859e283af","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/85d86ebc4bf3d2226d39d132a484f4f7a299fa1b","tags":["broken-link","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/openclaw-arbitrary-code-execution-via-mcp-stdio-environment-variables","tags":["patch","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44995","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw","tags":["package"],"sources":["ghsa"]}],"credits":["Gus (@garagon)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-11T17:56:23.350Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44995","url":"https://www.cve.org/CVERecord?id=CVE-2026-44995","licence":"CVE Terms of Use","modified":"2026-05-11T17:57:02.478Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mj59-h3q9-ghfh","url":"https://github.com/advisories/GHSA-mj59-h3q9-ghfh","licence":"CC-BY-4.0","modified":"2026-05-19T16:11:27.853Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44995","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44995","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.236Z","epss":{"score":0.00136,"percentile":0.03283,"date":"2026-12-01T12:00:22.000Z"}}