CVE-2026-72718: CWE-94: Improper Control of Generation of Code ('Code Injection') in aaif-goose goose
CVE-2026-72718 is a code injection vulnerability in the aaif-goose 'goose' AI agent prior to version 1.44.0. The vulnerability arises because the 'goose review' command runs the system Git executable without sanitizing attacker-controlled Git configuration, specifically the 'core.fsmonitor' setting. This allows a malicious Git repository to execute arbitrary commands on the host with the privileges of the user running goose. The issue is fixed in version 1.44.0.
AI Analysis
Technical Summary
The vulnerability in aaif-goose's goose agent involves the 'goose review' command invoking 'git diff HEAD' to gather diffs without stripping attacker-controlled Git configuration. A malicious repository can set 'core.fsmonitor' to an arbitrary command, which Git executes during its index refresh. This command runs before any model interaction or user approval and outside of goose's tool-permission model, enabling arbitrary code execution with the user's privileges. The vulnerable Git invocations are implemented in the git_command() function in the source code and affect versions prior to 1.44.0. The issue is addressed in version 1.44.0.
Potential Impact
An attacker controlling a malicious Git repository can execute arbitrary commands on the host machine with the privileges of the user running goose. This can lead to unauthorized file access or modification and exfiltration of environment secrets and API keys. The vulnerability does not require user interaction beyond running 'goose review' on the malicious repository. The CVSS 4.0 score is 7 (high severity), reflecting the local attack vector, low attack complexity, required user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to aaif-goose goose version 1.44.0 or later, where this vulnerability is fixed. There is no official patch or temporary fix detailed beyond upgrading. Until then, avoid running 'goose review' on untrusted or potentially malicious Git repositories to prevent arbitrary command execution.
CVE-2026-72718: CWE-94: Improper Control of Generation of Code ('Code Injection') in aaif-goose goose
Description
CVE-2026-72718 is a code injection vulnerability in the aaif-goose 'goose' AI agent prior to version 1.44.0. The vulnerability arises because the 'goose review' command runs the system Git executable without sanitizing attacker-controlled Git configuration, specifically the 'core.fsmonitor' setting. This allows a malicious Git repository to execute arbitrary commands on the host with the privileges of the user running goose. The issue is fixed in version 1.44.0.
CVSS v4.0
Score 7.0high
Affected software
pkg:cargo/github/aaif-goose/gooseRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in aaif-goose's goose agent involves the 'goose review' command invoking 'git diff HEAD' to gather diffs without stripping attacker-controlled Git configuration. A malicious repository can set 'core.fsmonitor' to an arbitrary command, which Git executes during its index refresh. This command runs before any model interaction or user approval and outside of goose's tool-permission model, enabling arbitrary code execution with the user's privileges. The vulnerable Git invocations are implemented in the git_command() function in the source code and affect versions prior to 1.44.0. The issue is addressed in version 1.44.0.
Potential Impact
An attacker controlling a malicious Git repository can execute arbitrary commands on the host machine with the privileges of the user running goose. This can lead to unauthorized file access or modification and exfiltration of environment secrets and API keys. The vulnerability does not require user interaction beyond running 'goose review' on the malicious repository. The CVSS 4.0 score is 7 (high severity), reflecting the local attack vector, low attack complexity, required user interaction, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to aaif-goose goose version 1.44.0 or later, where this vulnerability is fixed. There is no official patch or temporary fix detailed beyond upgrading. Until then, avoid running 'goose review' on untrusted or potentially malicious Git repositories to prevent arbitrary command execution.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-08-10T13:48:09.545Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7a065cbf8831d53937080d
Added to database: 08/10/2026, 17:11:56 UTC
Last enriched: 08/10/2026, 17:26:14 UTC
Last updated: 08/10/2026, 17:29:15 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.