🇰🇷 한글 설명
Hermes Agent 0.18.2에서 0.21.0 버전 사이에서 원격 코드 실행 취약점이 발견되었습니다. 공격자가 조작된 .git/config 파일을 포함한 저장소를 통해 core.fsmonitor 설정을 악용하면, 사용자가 해당 저장소를 열고 메시지를 보낼 때 임의의 OS 명령어가 실행되어 API 키 등 민감한 환경 변수가 유출될 수 있습니다.
💡 쉬운 설명
악성 설정이 담긴 프로젝트 폴더를 열기만 해도 해커가 내 컴퓨터에 몰래 명령을 내릴 수 있는 보안 구멍입니다. 이 과정에서 사용자의 중요한 비밀번호나 API 키가 해커에게 통째로 넘어갈 위험이 있습니다.
🇺🇸 원문 (English)
Hermes Agent 0.18.2 through 0.21.0, fixed in commit f6234d0, contains a remote code execution vulnerability that allows attackers to execute arbitrary OS commands by supplying a malicious repository with a crafted .git/config that sets core.fsmonitor to an attacker-controlled command. When a user opens the malicious repository and sends any message, the agent triggers a git status index refresh which executes the injected command in the user's process context, exposing the full environment including configured provider API keys.
📍 영향받는 시스템
Hermes Agent 0.18.2 ~ 0.21.0
⚔️ 공격 벡터
조작된 .git/config 파일이 포함된 저장소를 열고 메시지를 전송하여 git status 인덱스 리프레시 유도
🛡️ 대응 방법
커밋 f6234d0가 적용된 최신 버전으로 Hermes Agent를 업데이트하십시오.
🔧 검증 코드
출력된 버전이 0.18.2 미만이거나 0.21.0을 초과하는지 확인하십시오.
hermes-agent --version 2>/dev/null || echo 'version not found'