goose command injection in the review diff.external setting
Affects goose CLI 1.35.0 before 1.53.0 when goose review runs in a repository whose .git/config sets diff.external. Fixed in 1.53.0.
- Exploited
- No known exploitation
- Fix
- Fixed in 1.53.0
- Who is exposed
- Specific setups only
Summary
Goose CLI, from aaif-goose, has a local code execution flaw in how it runs `goose review`. An attacker who gets a victim to run the command in a crafted repository can run commands as that user, which can expose credentials and provider API keys.
Written by a model
Original description
Goose CLI 1.35.0 before 1.53.0 contains a local code execution vulnerability that allows attackers to run commands by setting diff.external in a repository's .git/config. Attackers can ship a crafted repository that, when the victim runs goose review, executes git diff without --no-ext-diff, running commands as the user and exposing credentials and provider API keys.
Who should check
Teams running goose CLI 1.35.0 through 1.52.x, including developers and CI jobs that run goose review on repositories they did not create
“Affecting goose >= 1.35.0, < 1.53.0”
What to do
Check whether your setup matches what the bug needs.
goose CLI version 1.35.0 up to but not including 1.53.0 The repository's .git/config sets diff.external to a command The victim runs goose review in that repositoryUpgrade to a fixed version: 1.53.0.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-129128 (goose CLI 1.35.0 before 1.53.0 Command Execution via goose review diff.external), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-129128 (entry last updated 2026-11-16):
Affected:
- aaif-goose goose: from 1.35.0, fixed in 1.53.0
Fixed versions: 1.53.0.
Conditions (all must be true for the bug to be hit):
- goose CLI version 1.35.0 up to but not including 1.53.0 (source: https://www.vulncheck.com/advisories/goose-cli-1.35.0-before-1.53.0-command-execution-via-goose-review-diff-external)
- The repository's .git/config sets diff.external to a command (source: https://www.vulncheck.com/advisories/goose-cli-1.35.0-before-1.53.0-command-execution-via-goose-review-diff-external)
- The victim runs goose review in that repository (source: https://www.vulncheck.com/advisories/goose-cli-1.35.0-before-1.53.0-command-execution-via-goose-review-diff-external)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, no login, a user action.
CISA KEV: CVE-2026-129128 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-129128 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/aaif-goose/goose/commit/3fbea00fd44f6496ee4afe2b8b2897c3c95d63e9
- https://github.com/aaif-goose/goose/pull/12537
- https://github.com/aaif-goose/goose/pull/13469
- https://github.com/aaif-goose/goose/issues/12960
- https://github.com/aaif-goose/goose
- https://github.com/aaif-goose/goose/releases/tag/v1.53.0
- https://github.com/aaif-goose/goose/blob/302b60806639ea9f0ae8f053f49f8bf0e88b26f4/crates/goose-cli/src/commands/review/handler.rs#L400
- https://www.vulncheck.com/advisories/goose-cli-1.35.0-before-1.53.0-command-execution-via-goose-review-diff-external
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-129128
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-129128"}.Affected versions
- aaif-goose gooseFrom 1.35.0 · fixed in 1.53.0
cve.now Index
- Exploitation0/40No signal
- Exposure5/25Specific setups only
- Reach?/20Unknown. No tracked technology or package matched
- Severity9.4/10CVSS 8.4, total technical impact per CISA
- No patch0/5No signal
What would change the score
- Would score about 64 if added to CISA KEV
- Would score about 59 if CISA's SSVC rates exploitation active
- Would score about 24 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now3 days
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Public exploit activity
- EPSS: 0.15%
Since disclosure: the repos PoC-in-GitHub lists and FIRST's daily EPSS score.
Evidence 10
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-129128 |
| Record | NVD · CVE-2026-129128 |
| Other links 8 | |
| Patch | GitHub · aaif-goose/goose · Commit 3fbea00f |
| Patch | GitHub · aaif-goose/goose · Pull request #12537 |
| Patch | GitHub · aaif-goose/goose · Pull request #13469 |
| Report | GitHub · aaif-goose/goose · Issue #12960 |
| Repository | GitHub · aaif-goose/goose · Repository |
| Repository | GitHub · aaif-goose/goose · Release v1.53.0 |
| Repository | GitHub · aaif-goose/goose · crates/goose-cli/src/commands/review/handler.rs · L400 |
| Link | vulncheck.com · advisories/goose-cli-1.35.0-before-1.53.0-command-execution-via-goose-review-diff-external |
Questions about CVE-2026-129128
Is CVE-2026-129128 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A malicious repository can set diff.external in its .git/config to a command. When someone runs goose review in that repository, the attacker's command runs as the user running goose, which can expose credentials and provider API keys.
Source: vulncheck.com
Which versions are affected by CVE-2026-129128?
goose: from 1.35.0 before 1.53.0.
Source: cve.now feed data
Am I affected, and how do I check?
Versions from 1.35.0 up to but not including 1.53.0 are affected. The setup involves running goose review in a repository whose .git/config sets diff.external; check the installed version with the goose CLI version output and inspect that repository's .git/config for a diff.external entry.
Source: vulncheck.com
How do I fix CVE-2026-129128?
Upgrade the goose CLI to 1.53.0 or later, which contains the fix.
Source: vulncheck.com
Related
- CVE-2026-85623goose 1.37.0 Arbitrary Command Execution via Recipe Extensions
- CVE-2026-72718goose: Arbitrary command execution in goose CLI via `goose review` via git core.fsmonitor
- CVE-2026-109561goose from 1.28.0 before 1.44.0 Manual Approval Bypass via Read-Only Tool Annotations
- CVE-2026-135797Volans NGFW Next-Generation Firewall SSLVPN Client sslvpn_client.php exec os command injection
- CVE-2026-135792Panabit Smart Application Gateway Email Auth Code Sender user.cgi send_email_authcode os command injection
- CVE-2026-123340Copeland XWEB Pro OS command injection
No corrections so far. Something wrong on this page? Report an error.