Goose CLI: Local code execution via git configuration (CVE-2026-129128)
Goose CLI versions 1.35.0 through 1.52.9 are vulnerable to local code execution due to the insecure invocation of git diff when processing repositories with malicious .git/config settings.
CVE search metadata
CVE search record: CVE-2026-129128. Severity: high. CVSS: 7.8. KEV: no. Product: Goose CLI (>= 1.35.0, < 1.53.0). Brief: Goose CLI: Local code execution via git configuration (CVE-2026-129128). Brief link: https://feed.craftedsignal.io/briefs/2026-11-goose-cli-rce-cve-2026-129128/
Triage facts
Revision 1- Applicability
- Goose CLI (>= 1.35.0, < 1.53.0)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Nov 13, 21:36 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
Goose CLI versions 1.35.0 through 1.52.9 contain a local code execution vulnerability (CVE-2026-129128). An attacker can leverage this flaw by supplying a repository with a maliciously crafted .git/config file, specifically setting the diff.external variable. When a victim executes the 'goose review' command within this directory, the tool invokes 'git diff' without the --no-ext-diff flag, causing the external command defined in the configuration to execute with the user's privileges.
Attack Chain
- Attacker modifies or provides a repository containing a malicious .git/config file setting 'diff.external'.
- Victim clones or opens the attacker-controlled repository.
- Victim runs the 'goose review' command within the repository path.
- Goose CLI invokes 'git diff' internally.
- Git executes the arbitrary command specified in the malicious 'diff.external' configuration.
- Arbitrary command executes with the context and privileges of the victim user, potentially leaking credentials or API keys.
Impact
Successful exploitation allows for arbitrary local code execution under the context of the user running the Goose CLI. This can lead to unauthorized access to system resources, potential theft of sensitive credentials, and exposure of provider API keys configured on the host.
Recommendation
Upgrade the Goose CLI to version 1.53.0 or later immediately to incorporate proper sanitization and secure 'git' command flags.
Immediate actions
Upgrade Goose CLI to version 1.53.0 or later on all endpoints.
Threat Hunt
Monitor for anomalous execution of git processes spawned by the goose binary, specifically where external configuration files are referenced.
Data: Process creation events (Event ID 1 or equivalent), Command line arguments of child processes spawned by goose
Mitigations
Patch Goose CLI to 1.53.0.
CVE-2026-129128