goose: Arbitrary command execution in goose CLI via `goose review` via git core.fsmonitor
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Active
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-94.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| aaif-goose | goose | before 1.44.0 | 1.44.0 | Patch available | CNA |
- goose Vendoraaif-goose Affected before 1.44.0 Fixed in 1.44.0 Patch available CNA
Remediation
- Fix · CNA goose (aaif-goose) Fixed in 1.44.0
Red Hat 2 advisories
- RHSA-2026:80765 Released 2026-10-12 · Red Hat rating Importantgoose security update
- Red Hat Enterprise Linux Extensions Channel (v. 10) goose-1.45.0-1.el10_2
- RHSA-2026:80764 Released 2026-10-12 · Red Hat rating Importantgoose security update
- Red Hat Enterprise Linux Extensions Channel (v. 9) goose-1.45.0-1.el9_8
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux Extensions Channel (v. 10) | Fixed | RHSA-2026:80765 |
| Red Hat Enterprise Linux Extensions Channel (v. 9) | Fixed | RHSA-2026:80764 |
Timeline
- 2026-10-02 Threatist record created from CVE-2026-72718
- 2026-10-12 Fix available: RHSA-2026:80765 · Red Hat
- 2026-10-12 Fix available: RHSA-2026:80764 · Red Hat
- 2026-10-12 Fix available: Red Hat Enterprise Linux Extensions Channel (v. 10), Red Hat Enterprise Linux Extensions Channel (v. 9) · Red Hat
References
More aaif-goose vulnerabilities
- TI-2026-58748 goose 1.37.0 Arbitrary Command Execution via Recipe Extensions CVSS 4.0HIGH 8.7
- TI-2026-71291 Manual approval bypass in goose via read-only tool annotations CVSS 4.0LOW 2.3
Sources
- CVE-2026-72718 · CVE Program
- CVE-2026-72718 · NVD
- FIRST EPSS
- CVE-2026-72718 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences