{"id":"CVE-2026-42427","aliases":["CVE-2026-42427","GHSA-7437-7hg8-frrw"],"related":[],"kind":"vulnerability","state":"published","title":"OpenClaw < 2026.4.8 - Remote Code Execution via Build Tool Environment Variable Injection","summary":"OpenClaw before 2026.4.8 contains a remote code execution vulnerability caused by missing environment variable denylist entries for HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER, and MAKEFLAGS. Attackers can inject malicious build tool environment variables to influence host exec commands and achieve arbitrary code execution.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenClaw before 2026.4.8 contains a remote code execution vulnerability caused by missing environment variable denylist entries for HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER, and MAKEFLAGS. Attackers can inject malicious build tool environment variables to influence host exec commands and achieve arbitrary code execution.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nHGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER, and MAKEFLAGS missing from exec env denylist — RCE via build tool env injection (GHSA-cm8v-2vh9-cxf3 class).\n\nMissing denylist entries allowed hostile build-tool environment variables to influence host exec commands.\n\nOpenClaw is a user-controlled local assistant. This advisory is scoped to the OpenClaw trust model and does not assume a multi-tenant service boundary.\n\n## Affected Packages / Versions\n\n- Package: `openclaw` (npm)\n- Affected versions: `< 2026.4.8`\n- Patched versions: `2026.4.8`\n\n## Fix\n\nThe issue was fixed on `main` and is available in the patched npm version listed above. The verified fixed tree is commit `d7c3210cd6f5fdfdc1beff4c9541673e814354d5`.\n\n## Verification\n\nThe fix was re-checked against `main` before publication, including targeted regression tests for the affected security boundary.\n\n## Credits\nThanks @boy-hack of Tencent zhuque Lab (https://github.com/Tencent/AI-Infra-Guard) for reporting.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenClaw anterior a 2026.4.8 contiene una vulnerabilidad de ejecución remota de código causada por la falta de entradas en la lista de denegación de variables de entorno para HGRCPATH, CARGO_BUILD_RUSTC_WRAPPER, RUSTC_WRAPPER y MAKEFLAGS. Los atacantes pueden inyectar variables de entorno maliciosas de herramientas de compilación para influir en los comandos exec del host y lograr la ejecución de código arbitrario.","source":"nvd"}],"published":"2026-04-09T14:22:29.000Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N","score":5.8,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"}],"cwes":["CWE-78","CWE-184"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2026.4.8","status":"affected"},{"type":"semver","version":"2026.4.8","status":"unaffected"}],"vendor":"OpenClaw","product":"OpenClaw","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2026.4.8"}],"ecosystem":"npm","package":"openclaw","purl":"pkg:npm/openclaw","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2026.4.8"}],"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-7437-7hg8-frrw","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/d7c3210cd6f5fdfdc1beff4c9541673e814354d5","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/openclaw-remote-code-execution-via-build-tool-environment-variable-injection","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openclaw/openclaw","tags":["package"],"sources":["ghsa"]}],"credits":["boyhack (@boy-hack)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-29T14:47:54.771Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42427","url":"https://www.cve.org/CVERecord?id=CVE-2026-42427","licence":"CVE Terms of Use","modified":"2026-04-29T15:10:29.927Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7437-7hg8-frrw","url":"https://github.com/advisories/GHSA-7437-7hg8-frrw","licence":"CC-BY-4.0","modified":"2026-05-05T16:11:44.234Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42427","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42427","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:19.993Z","epss":{"score":0.00191,"percentile":0.0921,"date":"2026-12-01T12:00:22.000Z"}}