Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to OpenClaw workspace repo
-
DeliveryPlant .env setting CLOUDSDK_PYTHON to malicious interpreter
-
ExploitStage attacker-controlled Python binary on host
-
ExecutionOperator launches Gmail setup in OpenClaw
-
Persistgcloud reads CLOUDSDK_PYTHON and executes attacker interpreter
-
ImpactArbitrary code runs as operator user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path verification
|
| Exploitation Conditions | Exploitation requires that (1) the attacker can write to an OpenClaw workspace's .env file (described as 'repository access'), (2) the victim operator triggers the Gmail setup flow that invokes gcloud, and (3) the attacker has staged or can reach a Python binary/script that the manipulated CLOUDSDK_PYTHON path resolves to. Limiting factors per the CVSS 4.0 vector are significant: AV:L means execution must happen on the OpenClaw host (not over the network), AT:P encodes the non-default precondition that the workspace .env is attacker-influenced, and UI:A means a specific user action (running Gmail setup) is required - so this is not driveby-exploitable against default deployments where workspaces and operators are trusted. |
| Impact | Real-world risk is moderate and narrow. CVSS 4.0 base 7.0 with AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N reflects that, although no privileges are needed inside OpenClaw itself, exploitation is local, requires a specific attack precondition (a workspace whose .env is attacker-controlled and a Gmail setup gcloud run), and depends on a user action triggering the setup flow. No EPSS score, KEV listing, or public POC was provided, so this is best treated as 'no public exploit identified at time of analysis' rather than active exploitation. The high VC:H/VI:H impact is credible because winning the runtime race yields arbitrary code execution as the user running OpenClaw, but the AT:P + UI:A combination meaningfully limits opportunistic mass exploitation. Note one tension worth flagging: PR:N in the vector means OpenClaw demands no auth, yet the description says attackers need 'repository access' - that repo-write requirement is encoded as the attack requirement (AT:P) rather than as PR, so defenders should still treat repo write as the de facto prerequisite. |
| Exploit ScenarioDerived | An attacker who can commit to a repository that an OpenClaw operator later opens drops a .env file setting CLOUDSDK_PYTHON to a path under their control (for example, a script staged elsewhere in the repo). When the operator runs the Gmail setup, OpenClaw loads the .env, invokes gcloud, and gcloud launches the attacker's interpreter - executing arbitrary code as the operator. No public POC is referenced in the available data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 16, 2026
Arbitrary Python runtime execution in OpenClaw before 2026.5.2 lets an attacker with write access to the workspace plant a malicious .env file that overrides the CLOUDSDK_PYTHON variable used during Gmail setup, redirecting gcloud invocations to an attacker-controlled Python interpreter and leading to code execution. The CVSS 4.0 vector (AV:L/AT:P/UI:A) confirms the attack is local, requires a specific attack condition, and depends on a user/operator action - no public exploit identified at time of analysis, and the issue is not listed in CISA KEV.
RemediationAI
Vendor-released patch: upgrade OpenClaw to 2026.5.2 or later, per the GitHub Security Advisory at https://github.com/openclaw/openclaw/security/advisories/GHSA-fq9j-vw4w-fr6v and the VulnCheck advisory at https://www.vulncheck.com/advisories/openclaw-arbitrary-python-runtime-execution-via-cloudsdk-python-environment-variable. Until upgrade is possible, restrict who can write to OpenClaw workspaces and to repository .env files (treat them as code, not config), and explicitly unset or pin CLOUDSDK_PYTHON in the shell environment used to launch OpenClaw so workspace overrides cannot redirect the gcloud Python runtime - the trade-off is that operators lose the ability to legitimately swap Python interpreters per project. As a defense-in-depth measure, run OpenClaw under a least-privileged account so that any code executed via a hijacked CLOUDSDK_PYTHON has limited access to credentials and host resources, accepting that this does not prevent execution itself.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
OpenClaw is the affected product per CPE cpe:2.3:a:openclaw:openclaw. The flaw maps to CWE-426 (Untrusted Search Path): instead of resolving the Python runtime from a trusted, hard-coded path, the Gmail setup flow honors CLOUDSDK_PYTHON - an environment variable the gcloud CLI uses to choose its Python interpreter. Because OpenClaw loads workspace-level .env files into the process environment before invoking gcloud, an attacker who can drop or modify a .env file inside the repository can point CLOUDSDK_PYTHON at any binary or script on disk, which gcloud will then execute as the Python runtime. This is a classic untrusted search/runtime resolution problem layered on top of an environment-variable trust boundary failure between the workspace and the host shell.
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:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Local vector (AV:L) because .env and runtime are host-side; AC:H and PR:L reflect required workspace write access; UI:R for operator-triggered Gmail setup; C/I:H for code execution, A:N as availability is not the primary impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
OpenClaw before 2026.5.2 contains an environment variable injection vulnerability allowing workspace .env files to influence Python runtime selection through CLOUDSDK_PYTHON during Gmail setup gcloud execution. Attackers with repository access can manipulate the CLOUDSDK_PYTHON variable to execute setup through unintended local Python paths, potentially enabling arbitrary code execution.
Blast Radius
ecosystem impact- 2 npm packages depend on openclaw (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 2026.5.2.
Articles & Coverage 1
Executive ViewAI
OpenClaw before version 2026.5.2 allows arbitrary Python runtime execution through malicious .env file manipulation during Gmail setup; no public exploit identified at time of analysis. Development and operations teams using OpenClaw face code execution risk within their workspace environments, potentially compromising application builds, deployments, and automated processes that depend on affected integrations.
No vendor-released patch identified at time of analysis. Interim mitigations: apply restrictive file permissions to .env files limiting write access to authorized administrators only; implement change detection and logging on .env files; disable Gmail setup workflows if not operationally required; monitor Python subprocess invocations for unexpected interpreter paths; enforce workspace access controls to limit local administrative capabilities.
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
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses
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
Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev
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
EUVD-2026-37144
GHSA-9fr2-p65v-gqxq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB