Loading...
Skip to main content

CVE-2026-22177

MEDIUM

OpenClaw's config env vars allowed startup env injection into service runtime

Published March 3, 2026Updated July 8, 2026Source: osv

Summary

### Summary OpenClaw 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. ### Details `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. ### Affected Packages / Versions - Package: `openclaw` (npm) - Latest published affected version: `2026.2.19-2` (published February 19, 2026) - Affected range (structured): `<=2026.2.19-2 || =2026.2.19` - Patched version (pre-set for next release): `>= 2026.2.21` ### Fix Commit(s) - `2cdbadee1f8fcaa93302d7debbfc529e19868ea4` ### Release Process Note `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. OpenClaw thanks @tdjackey for reporting.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update openclaw to 2026.2.21 or later
npm install openclaw@2026.2.21

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

PackageEcosystemAffectedFixed In
openclaw
npm
All versions2026.2.21

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-22177?
OpenClaw's config env vars allowed startup env injection into service runtime This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-22177?
CVE-2026-22177 affects openclaw. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-22177 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-8fmp-37rc-p5g7

Related CVEs

  • CVE-2026-28446
    CRITICAL

    OpenClaw has an inbound allowlist policy bypass in voice-call extension (empty caller ID + suffix matching)

  • CVE-2026-32915
    HIGH

    OpenClaw: Leaf subagents could steer sibling sessions across sandbox boundaries

  • CVE-2026-35674
    HIGH

    OpenClaw: Scoped chat.send route inheritance could bypass admin command scope gates

  • CVE-2026-53836
    HIGH

    OpenClaw: PowerShell encoded-command aliases could miss exec allowlist checks

  • CVE-2026-41387
    HIGH

    OpenClaw's incomplete host env sanitization blocklist allows supply-chain redirection via package-manager env overrides

  • CVE-2026-29610
    HIGH

    OpenClaw: Command hijacking via unsafe PATH handling (bootstrapping + node-host PATH overrides)

  • CVE-2026-33578
    MEDIUM

    OpenClaw: Google Chat and Zalouser group sender allowlist bypass via policy downgrade

  • CVE-2026-42426
    MEDIUM

    OpenClaw `node.pair.approve` placed in `operator.write` scope instead of `operator.pairing` allows unprivileged pairing approval

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies