Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts malicious .git/config with fsmonitor hook
-
DeliveryVictim clones or opens malicious repository
-
ExploitVictim runs `goose review` command
-
Installgoose invokes `git diff HEAD` without fsmonitor suppression
-
C2Git executes attacker-nominated shell command
-
ExecuteAttacker's payload runs with victim's privileges and environment
-
ImpactAPI keys and secrets exfiltrated
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The victim must run |
| Impact | The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:A) correctly characterises this as a local-access, user-interaction-required flaw with high confidentiality, integrity, and availability impact to the vulnerable system and no scope change. The local attack vector is apt: exploitation requires the victim user to |
| Exploit ScenarioDerived | An attacker publishes or contributes a Git repository containing a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 10, 2026
Arbitrary command execution in the goose AI agent's goose review command allows a malicious Git repository to run attacker-controlled code on the host before any model interaction occurs. The vulnerability exists in versions prior to 1.44.0 and stems from goose invoking the system git binary without suppressing the core.fsmonitor configuration key, meaning a repository's .git/config can nominate an arbitrary command that Git then executes during index refresh. Exploitation requires only that a user runs goose review inside a malicious repository, and the injected command inherits the user's full environment - including provider API keys and filesystem access. No public exploit has been identified at time of analysis, though the fix commit and advisory are public.
RemediationAI
Upgrade to goose version 1.44.0 or later, which is confirmed released at https://github.com/aaif-goose/goose/releases/tag/v1.44.0. The fix replaces all bare Command::new("git") calls with a hardened git_command() helper that unconditionally passes -c core.fsmonitor=false -c safe.bareRepository=explicit, neutralising repository-controlled hook injection. If an immediate upgrade is not possible, the primary compensating control is to avoid running goose review inside any repository whose .git/config or provenance you do not fully trust - this eliminates the attack surface entirely since the exploit requires a malicious repository to be the working directory. There is no network-level mitigation applicable, as the attack is entirely local. The trade-off of the workaround is operational: it prevents use of goose review on third-party or cloned repositories until the patch is applied. The advisory and fix commit are at https://github.com/aaif-goose/goose/commit/f8b5b7ba1fe6d006ccf6942f6b85a1bae985a2de.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerable component is git_command() in crates/goose-cli/src/commands/review/handler.rs, which previously called std::process::Command::new("git") directly without any hardening flags. Git's core.fsmonitor feature allows a repository-local .git/config to specify a shell command that Git runs during index refresh to accelerate change detection. When goose invoked git diff --name-only HEAD or git diff HEAD via touched_files() and collect_diff(), Git would honour the repo's core.fsmonitor setting and execute the attacker-nominated command. The root cause is CWE-94 (Improper Control of Generation of Code), specifically the failure to neutralize repository-controlled interpreter directives before passing control to a subordinate process. The fix, merged in v1.44.0, introduces a centralised git_command() helper in crates/goose/src/subprocess.rs that unconditionally prepends -c core.fsmonitor=false -c safe.bareRepository=explicit to every Git invocation, stripping the attacker's ability to inject hooks.
Know when Goose gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local attack vector with low-privilege repo access and required user action (running goose review); full C/I/A impact on the user's system, no scope change.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
The goose AI agent's goose review command contains an arbitrary code execution vulnerability that allows attackers to execute commands on developer workstations through malicious Git repositories, gaining access to API credentials and system resources. Since no patched version is currently available, any organization using goose faces immediate risk of credential compromise and lateral movement through developer environments.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict goose review command to trusted internal repositories only, disable Git fsmonitor via core.fsmonitor=false in organization Git configuration, implement process monitoring to detect unexpected child processes spawned from Git operations, monitor environment variable exposure from Git-related processes, and restrict goose usage to isolated development environments with minimal access to production credentials.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Arbitrary command execution in goose v1.37.0 allows an attacker to embed shell commands inside recipe stdio extension de
Local command execution in Goose CLI 1.35.0 up to but not including 1.53.0 allows an attacker-crafted repository to run
Goose's optional terminal integration feature captures shell command history and transmits it verbatim, with no redactio
EUVD-2026-55653
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB