OpenClaw before 2026.5.2 contains an environment variable injection vulnerability allowing workspace .env files to influence Python runtime selection through CLOUDSDK_PYTHON dur...
Date: 2026-06
Affected: openclaw/openclaw
Attack vector: rce
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2026-53842
CVE-2026-53858
CWE: CWE-426
CVSS: 7.1 (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N)

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.


Mitigations:

Architectural layers (MAESTRO):