{"id":"GHSA-8fmp-37rc-p5g7","revision":"80d52a787b774ea48b42fb48c8562213","records":[{"revision":"80d52a787b774ea48b42fb48c8562213","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-8fmp-37rc-p5g7","aliases":["CVE-2026-22177"],"title":"OpenClaw's config env vars allowed startup env injection into service runtime","description":"### Summary\nOpenClaw allowed dangerous process-control environment variables from `env.vars` (for example `NODE_OPTIONS`, `LD_*`, `DYLD_*`) to flow into gateway service runtime environments, enabling startup-time code execution in the OpenClaw process context.\n\n### Details\n`collectConfigEnvVars()` accepted unfiltered keys from config and those values were merged into the daemon install environment in `buildGatewayInstallPlan()`. Before the fix, startup-control variables were not blocked in this path.\n\n### Affected Packages / Versions\n- Package: `openclaw` (npm)\n- Latest published affected version: `2026.2.19-2` (published February 19, 2026)\n- Affected range (structured): `<=2026.2.19-2 || =2026.2.19`\n- Patched version (pre-set for next release): `>= 2026.2.21`\n\n### Fix Commit(s)\n- `2cdbadee1f8fcaa93302d7debbfc529e19868ea4`\n\n### Release Process Note\n`patched_versions` is pre-set to the planned next release (`2026.2.21`). Once that npm release is published, this advisory is ready to publish without further content edits.\n\nOpenClaw thanks @tdjackey for reporting.","state":0,"publishedAt":"2026-03-03T19:53:02+00:00","modifiedAt":"2026-07-08T07:14:01.4578794+00:00","affected":[{"ecosystem":"npm","name":"openclaw","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2026.2.21"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"CVSS_V4","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/openclaw/openclaw/security/advisories/GHSA-8fmp-37rc-p5g7","https://github.com/openclaw/openclaw/security/advisories/GHSA-w9j9-w4cp-6wgr","https://nvd.nist.gov/vuln/detail/CVE-2026-22177","https://github.com/openclaw/openclaw/commit/2cdbadee1f8fcaa93302d7debbfc529e19868ea4","https://github.com/openclaw/openclaw","https://www.vulncheck.com/advisories/openclaw-environment-variable-injection-via-config-env-vars"],"sourceUrl":"https://github.com/advisories/GHSA-8fmp-37rc-p5g7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-8fmp-37rc-p5g7","identifiers":["GHSA-8fmp-37rc-p5g7","CVE-2026-22177"]},"retained":false,"historicalAffected":[]}],"coverage":[]}