Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlant malicious .env in workspace
-
DeliveryOperator starts OpenClaw in workspace
-
ExploitOperator runs Gmail setup flow
-
ExecutionCLOUDSDK_PYTHON_ARGS inherited by gcloud launcher
-
PersistPython executes injected arguments
-
ImpactCode runs as host user (creds/files/processes)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
|
| Exploitation Conditions | Exploitation requires (1) an untrusted, attacker-controlled OpenClaw workspace containing a malicious .env file that sets the CLOUDSDK_PYTHON_ARGS environment variable; (2) an operator who starts OpenClaw against that workspace content; and (3) that operator subsequently running the Gmail setup flow, which invokes the gcloud launcher and passes the inherited variable to the trusted Python interpreter. Limiting factors: the attack is local (payload must already reside in the workspace), and it depends entirely on operator action in a specific setup flow - it cannot be triggered remotely or unattended. The documented workaround (run Gmail setup only from trusted workspaces and clear inherited CLOUDSDK_* variables beforehand) directly neutralizes the condition. Affected versions are 2026.3.28 through 2026.8.0; 2026.8.1 fixes it. |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P) scores 8.5 High, and this aligns with the mechanics: the flaw is fundamentally local - it requires the attacker's payload to already be present in the OpenClaw workspace as a malicious .env file, and it requires an operator to both launch OpenClaw against that attacker-controlled content and then actively run the Gmail setup flow (the UI:P/passive-interaction and my UI:R condition). Impact is genuinely severe once triggered: CWE-88 argument injection into the trusted Python interpreter yields full code execution as the host user (VC:H/VI:H/VA:H - credential theft, file modification, arbitrary process spawning). There is no EPSS score, no CISA KEV listing, and no public exploit code provided in the input, so this is a credible-but-unproven risk rather than an actively exploited one. The 'PR:N' rating is technically defensible (the attacker plants a file rather than authenticating) but is misleading in isolation - real exploitation is gated behind local workspace control plus operator action, which substantially lowers real-world likelihood. Note the input Tag 'Information Disclosure' understates and mislabels the issue: this is remote-code-execution/argument-injection, not mere disclosure. Net: a real defect worth patching, but a targeted/social-engineering-dependent one, not a mass-exploitable network vulnerability. |
| Exploit ScenarioDerived | An attacker publishes or contributes a repository/workspace containing a crafted .env file that sets CLOUDSDK_PYTHON_ARGS to a malicious value. An operator clones this workspace, starts OpenClaw inside it, and runs the Gmail setup flow; the poisoned variable is inherited when gcloud launches Python, and the injected arguments cause Python to execute the attacker's code with the operator's host permissions. No public exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 26, 2026
OpenClaw npm package versions 2026.3.28 through 2026.8.0 can be coerced into executing attacker-supplied Python code when an operator opens OpenClaw against an untrusted workspace whose .env file sets CLOUDSDK_PYTHON_ARGS and then runs the Gmail setup flow. The poisoned value is inherited by the gcloud launcher, which forwards it as arguments to the trusted Python interpreter, giving the attacker code execution with the OpenClaw host user's permissions - enough to read credentials, modify files, or spawn further processes. The issue is rated 8.5 (CVSS 4.0 AV:L/AC:L/AT:N/PR:N/UI:P; independent assessment CVSS 3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) and is fully local and interaction-dependent: the malicious workspace content must already be present and the operator must both launch OpenClaw on it and actively trigger Gmail setup, so it cannot be fired remotely or unattended; no public exploit code was identified at time of analysis. Version 2026.8.1 fixes the flaw.
RemediationAI
Upgrade the openclaw npm package to 2026.8.1 or later, the exact version in which the vendor fixed this issue, and redeploy so the patched code path no longer honors a workspace-supplied CLOUDSDK_PYTHON_ARGS value; the vendor advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-5mrc-77hj-xjxv is the authoritative reference, with a third-party write-up at https://www.vulncheck.com/advisories/openclaw-before-2026.8.1-remote-code-execution-via-cloudsdk-python-args. If upgrading is not immediately possible, apply the documented workaround: run the Gmail setup flow only from trusted, non-attacker-controlled workspaces, and explicitly clear inherited CLOUDSDK_* variables - in particular CLOUDSDK_PYTHON_ARGS - from the environment before launching OpenClaw or invoking gcloud (for example by unsetting it in the shell or scrubbing it from the workspace .env before startup). The trade-off is that clearing CLOUDSDK_* removes any legitimate per-project Cloud SDK Python argument configuration, which must then be re-applied manually through a trusted, non-workspace-controlled source; restricting Gmail setup to trusted workspaces likewise constrains normal workflows that rely on opening arbitrary or downloaded workspace content. Because exploitation requires the operator to start OpenClaw on untrusted workspace content and then run the setup flow, treating workspace .env files as untrusted input, reviewing them before startup, and avoiding Gmail setup inside externally supplied workspaces materially reduces exposure even before patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-88, argument injection, in the Google Cloud SDK invocation path used by OpenClaw's Gmail setup flow. OpenClaw honors an environment file from the workspace, and a value supplied there for CLOUDSDK_PYTHON_ARGS is not sanitized or stripped before the gcloud launcher consumes it. CLOUDSDK_PYTHON_ARGS is a legitimate Cloud SDK setting whose purpose is to pass options through to the Python interpreter that runs gcloud; because the launcher treats the string as trusted arguments, a crafted value injects interpreter options (for example an inline code execution flag) that the interpreter executes as the invoking host user. The CPE cpe:2.3:a:openclaw:openclaw:*:*:*:*:*:*:*:* identifies the affected npm package, and the tagged intelligence (Python, Node.js, Information Disclosure, OpenClaw) reflects the mixed stack: a Node.js/npm client that shells out to a Python-based cloud toolchain. The trust boundary failure is that a workspace-local, attacker-influenceable file is allowed to set an environment variable that controls how a trusted external interpreter is invoked, so the injection does not require any flaw in Python or gcloud themselves.
Know when Openclaw gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AV:L because the malicious .env must reside locally in the workspace; UI:R because an operator must launch OpenClaw and run Gmail setup; PR:N as the attacker plants content without authenticating; C/I/A:H for full code execution as the host user.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
OpenClaw (npm package 'openclaw') versions >= 2026.3.28 and < 2026.8.1 allow an untrusted workspace .env file to set the CLOUDSDK_PYTHON_ARGS environment variable. When an operator starts OpenClaw in attacker-controlled workspace content and then runs the Gmail setup flow, that value is inherited when gcloud is launched, and the gcloud launcher passes it as arguments to the trusted Python interpreter. A crafted CLOUDSDK_PYTHON_ARGS value can therefore cause Python to execute attacker-supplied code with the OpenClaw host user's permissions, allowing credentials to be read, files to be modified, or other processes to be started. This issue is fixed in version 2026.8.1; as a workaround, run Gmail setup only from trusted workspaces and clear inherited CLOUDSDK_* variables beforehand.
Articles & Coverage 2
Technical POC Analysis
Evidence base: GHSA-5mrc-77hj-xjxv only.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
OpenClaw npm package versions 2026.3.28 through 2026.8.0 expose organizations to a high-severity local code execution risk when operators open untrusted workspaces and trigger the Gmail setup flow. A malicious workspace can lead to unauthorized code execution with the host user's permissions, potentially compromising credentials and files on affected systems. Leadership should prioritize remediation because development and administrative users who handle third-party project files are the primary affected group, and no public exploit identified at time of analysis.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.
Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b
OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att
An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.
OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e
Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in
Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a
Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach
OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director
OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func
OpenClaw versions prior to 2026.2.22 contain a resource exhaustion vulnerability where the application fails to consiste
OpenClaw versions prior to 2026.3.1 contain a sandbox escape vulnerability that allows authenticated attackers with low
EUVD-2026-87481
GHSA-g53g-fv6q-g8f9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB