Openclaw cli: OpenClaw: SSH-based sandbox backends pass unsanitized process.env to child processes (CVE-2026-41357)
Description
OpenClaw CLI versions prior to 2026.3.31 have a vulnerability where SSH-based sandbox backends pass unsanitized environment variables (process.env) to child processes. This can lead to local environment variable leakage in SSH child processes. Remote leakage requires non-default SSH environment forwarding, which is not common, so the severity is considered low. The issue is fixed in version 2026.3.31.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The OpenClaw CLI package (npm) versions from 2026.1.29 up to but not including 2026.3.31 contain a vulnerability (CVE-2026-41357) where SSH-based sandbox backends pass unsanitized process.env environment variables to child processes. This can cause local environment variables to leak into SSH child processes. Remote environment leakage requires non-default SSH environment forwarding, reducing the risk. The vulnerability has been patched in version 2026.3.31 by commit cfe14459531e002a1c61c27d97ec7dc8aecddc1f.
Potential Impact
Local SSH child processes may receive unsanitized environment variables, potentially exposing sensitive local environment data. Remote exploitation is limited because it requires non-default SSH environment forwarding, which is not enabled by default. No known exploits are reported in the wild.
Mitigation Recommendations
Upgrade OpenClaw CLI to version 2026.3.31 or later, which contains the official fix. No additional mitigation is required as the patch fully addresses the vulnerability.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-openclaw-cli-CVE-2026-41357
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 4.0
Threat ID: 6ac245a312601ec6a3165d8f
Added to database: 10/04/2026, 12:25:07 UTC
Last enriched: 10/04/2026, 12:49:06 UTC
Last updated: 10/04/2026, 16:08:38 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.