Skip to main content

OpenClaw CVE-2026-53842

| EUVDEUVD-2026-37144 HIGH
Untrusted Search Path (CWE-426)
7.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain write access to OpenClaw workspace repo
  2. Delivery
    Plant .env setting CLOUDSDK_PYTHON to malicious interpreter
  3. Exploit
    Stage attacker-controlled Python binary on host
  4. Execution
    Operator launches Gmail setup in OpenClaw
  5. Persist
    gcloud reads CLOUDSDK_PYTHON and executes attacker interpreter
  6. Impact
    Arbitrary 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

OpenClaw 0 <2026.5.2

Affected Packages

npm openclaw fix: 2026.5.2

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

Vendor (VulnCheck) PRIMARY 7.0 HIGH
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
vuln.today AI 6.0 MEDIUM

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.

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
4.0 AV:L/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Jun 16, 2026 - 20:02 EUVD

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 97% exploitable
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA CIRCL GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

CVE-2026-28446 CRITICAL POC
9.4 Mar 05

Auth bypass in OpenClaw voice-call extension before 2026.2.1. EPSS 0.68%. PoC and patch available.

CVE-2026-33579 CRITICAL POC
9.4 Mar 31

Privilege escalation in OpenClaw (pre-2026.3.28) allows unauthenticated remote attackers to gain administrative access b

CVE-2026-32042 HIGH POC
8.8 Mar 21

OpenClaw versions 2026.2.22 through 2026.2.24 contain a privilege escalation vulnerability that allows authenticated att

CVE-2026-32051 HIGH POC
8.8 Mar 21

An authorization mismatch vulnerability in OpenClaw versions prior to 2026.3.1 allows authenticated users with operator.

CVE-2026-25253 HIGH POC
8.8 Feb 01

OpenClaw versions prior to 2026.1.29 automatically establish WebSocket connections to attacker-controlled gateway URLs e

CVE-2026-32846 HIGH POC
8.7 Mar 26

Path traversal in OpenClaw through version 2026.3.23 enables unauthenticated remote attackers to read arbitrary files in

CVE-2026-53857 HIGH POC
8.6 Jun 16

Authentication bypass in OpenClaw before 2026.5.3 allows remote attackers with low privileges to receive agent responses

CVE-2026-100530 HIGH POC
8.5 Sep 26

Directory-context bypass in OpenClaw before 2026.8.1 allows authenticated attackers with user interaction to reuse an 'a

CVE-2026-32064 HIGH POC
8.5 Mar 21

Unauthenticated access to the noVNC observer interface in OpenClaw's Docker sandbox browser allows anyone who can reach

CVE-2026-44118 HIGH POC
8.5 May 06

Authentication bypass in OpenClaw's MCP loopback interface allows local low-privilege attackers to escalate to owner-lev

CVE-2026-32055 HIGH POC
7.6 Mar 21

OpenClaw versions before 2026.2.26 allow authenticated attackers to write arbitrary files outside the workspace director

CVE-2026-32056 HIGH POC
7.5 Mar 21

OpenClaw versions prior to 2026.2.22 contain a shell environment variable injection vulnerability in the system.run func

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy