🇰🇷 한글 설명
OpenClaw(npm 패키지 'openclaw')의 특정 버전에서 신뢰할 수 없는 워크스페이스의 .env 파일이 CLOUDSDK_PYTHON_ARGS 환경 변수를 설정할 수 있는 취약점이 발견되었습니다. 공격자가 제어하는 워크스페이스에서 Gmail 설정 과정을 실행하면, 조작된 환경 변수를 통해 Python 인터프리터가 공격자의 코드를 실행하게 되어 사용자 권한으로 악성 행위가 가능해집니다.
💡 쉬운 설명
해커가 만든 설정 파일이 포함된 폴더에서 프로그램을 실행하면, 프로그램이 해커의 명령어를 몰래 실행하게 되는 보안 구멍입니다. 이를 통해 해커가 사용자의 파일이나 비밀번호를 훔쳐갈 수 있습니다.
🇺🇸 원문 (English)
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.
📍 영향받는 시스템
OpenClaw (npm package 'openclaw') versions >= 2026.3.28 and < 2026.8.1
⚔️ 공격 벡터
신뢰할 수 없는 워크스페이스의 .env 파일을 통한 환경 변수 주입 및 Python 코드 실행
🛡️ 대응 방법
OpenClaw 버전을 2026.8.1 이상으로 업데이트하거나, 신뢰할 수 있는 워크스페이스에서만 Gmail 설정을 수행하고 CLOUDSDK_* 변수를 초기화하십시오.
🔧 검증 코드
출력된 버전이 2026.3.28 이상 2026.8.1 미만인지 확인하십시오.
npm list -g openclaw --depth=0 2>/dev/null | grep -E 'openclaw@'