Skip to content
Threat Feed
high advisory

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

  1. Attacker modifies or provides a repository containing a malicious .git/config file setting 'diff.external'.
  2. Victim clones or opens the attacker-controlled repository.
  3. Victim runs the 'goose review' command within the repository path.
  4. Goose CLI invokes 'git diff' internally.
  5. Git executes the arbitrary command specified in the malicious 'diff.external' configuration.
  6. 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.

IT Operations 48h

Threat Hunt

Monitor for anomalous execution of git processes spawned by the goose binary, specifically where external configuration files are referenced.

T1059.003 medium medium confidence hunt now

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.

immediate IT Operations

CVE-2026-129128