🔍 CVE-2026-72718

0.0
CVSS Score
UNKNOWN
2026-08-10
2026-10-24 15:10
✅ 완료

🇰🇷 한글 설명

goose 1.44.0 미만 버전에서 `goose review` 명령어를 실행할 때, 공격자가 제어하는 Git 설정이 포함된 저장소를 분석하면 임의의 명령어가 실행될 수 있는 취약점입니다. Git의 `fsmonitor` 설정을 악용하여 사용자의 권한으로 악성 명령을 실행하며, 이는 goose의 도구 승인 모델을 우회하여 발생합니다. 이로 인해 파일 접근, 수정 및 환경 변수와 API 키 탈취가 가능합니다.

💡 쉬운 설명

AI 도구인 goose가 코드를 검토하는 과정에서 나쁜 설정이 담긴 프로젝트를 열면, 사용자가 허락하지 않아도 컴퓨터에 몰래 명령어를 실행할 수 있는 문제입니다. 이를 통해 해커가 사용자의 중요한 비밀번호나 파일을 훔쳐갈 수 있습니다.

🇺🇸 원문 (English)

goose is general-purpose AI agent that runs on your machine. Prior to 1.44.0, the `goose review` command runs the system `git` executable to gather the diff for review without stripping attacker-controlled Git configuration. A malicious repository whose `.git/config` sets [`core] fsmonitor = <command>` causes Git to execute that command on the host during the index refresh performed by `git diff HEAD`. The command runs before goose contacts a model and without a submitted prompt, model call, tool approval, or trust prompt. The context-gathering Git process is not sandboxed and is outside goose's tool-permission model. Arbitrary commands run with the privileges and environment of the user running goose, allowing file access or modification and exfiltration of environment secrets and provider API keys. The vulnerable Git invocations are built by git_command() in crates/goose-cli/src/commands/review/handler.rs and are used by touched_files() and collect_diff() for `git diff --name-only HEAD` and `git diff HEAD`. This issue is fixed in version 1.44.0.

📍 영향받는 시스템

goose version < 1.44.0

⚔️ 공격 벡터

악성 `.git/config` 파일이 포함된 저장소를 goose의 `review` 명령어로 분석하도록 유도

🛡️ 대응 방법

goose를 1.44.0 이상의 최신 버전으로 업데이트

🔧 검증 코드

출력된 버전 숫자가 1.44.0 미만이면 취약한 상태이며, 1.44.0 이상이면 안전합니다.

Shell / Script
goose --version 2>/dev/null | grep -E '1\.[0-9]{2}\.[0-9]{2}'

💻 영향받는 소프트웨어

Git