🇰🇷 한글 설명
Claude Code Action은 GitHub Pull Request 및 Issue에서 Claude Code를 실행하는 도구입니다. 1.0.74 이전 버전에서는 공격자가 조작한 .mcp.json 파일을 포함한 Pull Request를 통해 GitHub Actions 러너에서 임의 코드를 실행하고 API 키와 같은 비밀 정보를 탈취할 수 있는 취약점이 존재합니다.
💡 쉬운 설명
해커가 악성 설정 파일이 담긴 요청을 보내면, 자동화 도구가 이를 실행하는 과정에서 해커의 명령어를 수행하고 중요한 비밀번호를 훔쳐갈 수 있는 문제입니다. 이 문제는 Claude Code Action의 버전을 업데이트함으로써 해결할 수 있습니다.
🇺🇸 원문 (English)
Claude Code Action is a general-purpose GitHub action that runs Claude Code on GitHub pull requests and issues. Prior to 1.0.74, because the action checked out attacker-controlled pull request head branches, read .mcp.json from the working directory via default setting sources, and unconditionally enabled all project MCP servers via enableAllProjectMcpServers, an attacker who opened a pull request containing a malicious .mcp.json file could achieve arbitrary code execution on the GitHub Actions runner and exfiltrate secrets available to the workflow (such as API keys and tokens) when a privileged user or an automatic trigger invoked the Claude action on the pull request. This issue is fixed in version 1.0.74, which restores .claude/ and .mcp.json from the pull request base branch before the CLI runs.
📍 영향받는 시스템
Claude Code Action version < 1.0.74
⚔️ 공격 벡터
악성 .mcp.json 파일이 포함된 Pull Request를 생성하여 GitHub Actions 러너의 권한을 탈취함
🛡️ 대응 방법
Claude Code Action을 버전 1.0.74 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 버전 번호가 1.0.74와 같거나 더 높은지 확인하십시오.
echo "1.0.74" # Replace with actual version check command for your environment