🇰🇷 한글 설명
OpenClaw 2026.3.24 이전 버전에서 로컬 플러그인 및 훅 설치 시 임의 코드 실행 취약점이 존재합니다. 공격자는 .npmrc 파일을 조작하여 git 실행 파일을 오버라이드하고, npm install 실행 중 git 의존성을 통해 악의적 코드를 실행할 수 있습니다.
💡 쉬운 설명
npm 설치 중에 악의적인 설정 파일을 이용해 임의의 프로그램을 실행할 수 있는 보안 결함입니다. 공격자가 .npmrc 파일을 조작하면 사용자 시스템에서 해킹 코드가 실행될 수 있습니다.
🇺🇸 원문 (English)
OpenClaw before 2026.3.24 contains an arbitrary code execution vulnerability in local plugin and hook installation that allows attackers to execute malicious code by crafting a .npmrc file with a git executable override. During npm install execution in the staged package directory, attackers can leverage git dependencies to trigger execution of arbitrary programs specified in the attacker-controlled .npmrc configuration file.
📍 영향받는 시스템
OpenClaw < 2026.3.24
⚔️ 공격 벡터
공격자가 조작한 .npmrc 파일에서 git 실행 파일을 오버라이드하여 npm install 실행 시 임의 코드 실행
🛡️ 대응 방법
OpenClaw를 2026.3.24 이상으로 즉시 업그레이드
🔧 검증 코드
명령어가 VULNERABLE을 출력하면 취약한 버전이 설치된 상태이고, SAFE를 출력하면 안전한 버전이거나 미설치 상태입니다.
npm list openclaw 2>/dev/null | grep openclaw | awk '{print $2}' | grep -E '^2026\.[0-3]\.' && echo 'VULNERABLE' || echo 'SAFE'