VAITP Dataset

← Back to the dataset

CVE-2026-100570

Untrusted .env can set CLOUDSDK_PYTHON_ARGS, leading to code exec as host user.

  • CVSS 8.5
  • CWE-88
  • Configuration Issues
  • Local

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.

CVSS base score
8.5
Published
2026-09-26
OWASP
A03 Injection
Orthogonal defect classification
Interface
Code defect classification
Incorrect Interface
Category
Configuration Issues
Subcategory
Remote File Inclusion (RFI)
Accessibility scope
Local
Impact
Arbitrary Code Execution
Affected component
openclaw
Fixed by upgrading
Yes

Solution

Upgrade OpenClaw to version 2026.8.1 or later.

Vulnerable code sample

import os
import subprocess

def run_gcloud_auth():
    # VULNERABLE: passes untrusted CLOUDSDK_PYTHON_ARGS to gcloud subprocess
    subprocess.run(
        ["gcloud", "auth", "login"],
        env=os.environ,  # inherits attacker‑controlled variables
        check=True,
    )

Patched code sample

import os
import subprocess

def run_gcloud_auth():
    # FIX: removes CLOUDSDK_PYTHON_ARGS before launching gcloud
    safe_env = os.environ.copy()
    safe_env.pop("CLOUDSDK_PYTHON_ARGS", None)
    subprocess.run(
        ["gcloud", "auth", "login"],
        env=safe_env,
        check=True,
    )

Cite this entry

@misc{vaitp:cve2026100570,
  title        = {{Untrusted .env can set CLOUDSDK_PYTHON_ARGS, leading to code exec as host user.}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2026},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2026-100570},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-100570/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.