🇰🇷 한글 설명
OpenClaw의 exec 허용 목록 모드에서 Windows 호스트의 PowerShell 명령 분석 시 발생하는 취약점입니다. PATH에서 확인된 실행 파일과 이름이 동일한 파일이 작업 디렉토리에 있을 경우, 허용된 파일 대신 작업 디렉토리의 파일을 실행하여 임의의 코드를 실행할 수 있습니다.
💡 쉬운 설명
프로그램이 안전한 파일을 실행하려고 할 때, 해커가 같은 이름의 가짜 파일을 작업 폴더에 몰래 넣어두면 프로그램이 가짜 파일을 실행하게 되는 문제입니다. 이를 통해 해커는 권한을 탈취하여 악성 코드를 실행할 수 있습니다.
🇺🇸 원문 (English)
OpenClaw is an npm-distributed agent runtime. In versions >= 2026.2.26 and < 2026.7.1, PowerShell command analysis on Windows hosts running in exec allowlist mode could approve an exact executable resolved from PATH but subsequently execute a same-named executable located in the workspace directory. If lower-trust content can place an executable with an approved basename into an agent-writable workspace and steer an approved PowerShell command that uses a bare executable name, OpenClaw may run the workspace file instead of the allowlisted path, executing arbitrary code with the privileges of the Gateway or node-host user. The issue does not require replacement of the approved executable itself. Version 2026.7.1 contains a fix; as a workaround, avoid bare executable names in approved PowerShell commands and keep executable files out of agent-writable workspaces.
📍 영향받는 시스템
OpenClaw versions >= 2026.2.26 and < 2026.7.1
⚔️ 공격 벡터
작업 디렉토리에 허용된 실행 파일과 동일한 이름의 악성 파일을 배치하여 PowerShell 명령의 실행 경로를 조작함
🛡️ 대응 방법
OpenClaw를 2026.7.1 버전 이상으로 업데이트하거나, PowerShell 명령에서 실행 파일의 전체 경로를 사용하고 작업 디렉토리에 실행 파일을 두지 않음
🔧 검증 코드
출력된 버전이 2026.2.26 이상 2026.7.1 미만이면 취약한 상태입니다.
npm list -g openclaw --depth=0 | grep -E 'openclaw@202[0-6]\.[0-7]\.[0-9]'