{"id":"CVE-2026-41294","aliases":["CVE-2026-41294","GHSA-8rh7-6779-cjqq"],"related":[],"kind":"vulnerability","state":"published","title":"OpenClaw < 2026.3.28 - Environment Variable Injection via CWD .env File","summary":"OpenClaw before 2026.3.28 loads the current working directory .env file before trusted state-dir configuration, allowing environment variable injection. Attackers can place a malicious .env file in a repository or workspace to override runtime configuration and security-sensitive environment settings during OpenClaw startup.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OpenClaw before 2026.3.28 loads the current working directory .env file before trusted state-dir configuration, allowing environment variable injection. Attackers can place a malicious .env file in a repository or workspace to override runtime configuration and security-sensitive environment settings during OpenClaw startup.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nOpenClaw loaded the current working directory `.env` before trusted state-dir configuration, allowing untrusted workspace state to inject host environment values.\n\n## Impact\n\nA repository or workspace containing a malicious `.env` file could override runtime configuration and security-sensitive environment settings when OpenClaw started there.\n\n## Affected Component\n\n`src/infra/dotenv.ts, src/cli/dotenv.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 `6a79324802` (`Filter untrusted CWD .env entries before OpenClaw startup`).","format":"markdown","source":"ghsa"},{"lang":"es","text":"OpenClaw anterior a 2026.3.28 carga el archivo .env del directorio de trabajo actual antes de la configuración de state-dir de confianza, permitiendo la inyección de variables de entorno. Los atacantes pueden colocar un archivo .env malicioso en un repositorio o espacio de trabajo para anular la configuración en tiempo de ejecución y la configuración de entorno sensible a la seguridad durante el inicio de OpenClaw.","source":"nvd"}],"published":"2026-04-01T00:02:42.000Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.5,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.5,"rating":"HIGH"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":8.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6,"rating":"CRITICAL"}],"cwes":["CWE-15","CWE-426"],"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-8rh7-6779-cjqq","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/openclaw-environment-variable-injection-via-cwd-env-file","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/openclaw/openclaw/commit/6a793248024dca7685f63bcceb64a0096fd1586d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/openclaw/openclaw/releases/tag/v2026.3.28","tags":["web"],"sources":["ghsa"]}],"credits":["tdjackey"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-21T13:04:21.934Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41294","url":"https://www.cve.org/CVERecord?id=CVE-2026-41294","licence":"CVE Terms of Use","modified":"2026-04-21T13:04:36.188Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8rh7-6779-cjqq","url":"https://github.com/advisories/GHSA-8rh7-6779-cjqq","licence":"CC-BY-4.0","modified":"2026-04-20T23:56:24.945Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41294","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41294","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.072Z","epss":{"score":0.00135,"percentile":0.03205,"date":"2026-12-01T12:00:22.000Z"}}