{"id":"CVE-2026-41332","aliases":["CVE-2026-41332","GHSA-m866-6qv5-p2fg"],"related":[],"kind":"vulnerability","state":"published","title":"OpenClaw < 2026.3.28 - Code Execution via Missing Environment Variable Blocklist","summary":"OpenClaw before 2026.3.28 contains an environment variable sanitization vulnerability where GIT_TEMPLATE_DIR and AWS_CONFIG_FILE are not blocked in the host-env blocklist. Attackers can exploit approved exec requests to redirect git or AWS CLI behavior through attacker-controlled configuration files to execute untrusted code or load malicious credentials.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenClaw before 2026.3.28 contains an environment variable sanitization vulnerability where GIT_TEMPLATE_DIR and AWS_CONFIG_FILE are not blocked in the host-env blocklist. Attackers can exploit approved exec requests to redirect git or AWS CLI behavior through attacker-controlled configuration files to execute untrusted code or load malicious credentials.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nHost execution env sanitization did not block `GIT_TEMPLATE_DIR` or `AWS_CONFIG_FILE`, even though both can redirect trusted tooling to attacker-controlled content.\n\n## Impact\n\nAn approved exec request could redirect git or AWS CLI behavior through attacker-controlled configuration and execute untrusted code or load attacker-selected credentials.\n\n## Affected Component\n\n`src/infra/host-env-security-policy.json, src/infra/host-env-security.ts`\n\n## Fixed Versions\n\n- Affected: `<= 2026.3.24`\n- Patched: `>= 2026.3.28`\n- Latest stable `2026.3.28` contains the fix.\n\n## Fix\n\nFixed by commit `6eb82fba3c` (`Infra: block additional host exec env keys`).\n\nOpenClaw thanks @nicky-cc of Tencent zhuque Lab [https://github.com/Tencent/AI-Infra-Guard](https://github.com/Tencent/AI-Infra-Guard) for reporting.","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenClaw anterior a 2026.3.28 contiene una vulnerabilidad de saneamiento de variables de entorno donde GIT_TEMPLATE_DIR y AWS_CONFIG_FILE no están bloqueados en la lista de bloqueo host-env. Los atacantes pueden explotar solicitudes exec aprobadas para redirigir el comportamiento de git o AWS CLI a través de archivos de configuración controlados por el atacante para ejecutar código no confiable o cargar credenciales maliciosas.","source":"nvd"}],"published":"2026-03-31T23:57:00.000Z","modified":"2026-11-11T23:10:00.263Z","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:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-184"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"2026.3.28","status":"affected"},{"type":"semver","version":"2026.3.28","status":"unaffected"}],"vendor":"OpenClaw","product":"OpenClaw","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2026.3.28"}],"ecosystem":"npm","package":"openclaw","purl":"pkg:npm/openclaw","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2026.3.28"}],"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-m866-6qv5-p2fg","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/openclaw-code-execution-via-missing-environment-variable-blocklist","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/6eb82fba3cbfd0e50b179c1fada92e1e22dce7fa","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw","tags":["package"],"sources":["ghsa"]}],"credits":["Nicky (@nicky-cc)"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-24T16:46:25.322Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41332","url":"https://www.cve.org/CVERecord?id=CVE-2026-41332","licence":"CVE Terms of Use","modified":"2026-04-24T18:19:30.910Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m866-6qv5-p2fg","url":"https://github.com/advisories/GHSA-m866-6qv5-p2fg","licence":"CC-BY-4.0","modified":"2026-05-06T23:41:29.549Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41332","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41332","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.425Z","epss":{"score":0.00109,"percentile":0.01365,"date":"2026-12-01T12:00:22.000Z"}}