goose CLI 1.35.0 before 1.53.0 Command Execution via goose review diff.external
- State
- Published
- Severity
- 8.4 High
- Published
- Nov 13, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 13, 2026
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.
| Product | Versions |
|---|---|
| goose aaif-goose | 1.35.0 to before 1.53.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.4 High | VulnCheck | |
| 3.1 | 7.8 High | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
References
- GitHub Issue #12960Issue Tracker
- https://github.com/aaif-goose/gooseProduct Page
- https://github.com/aaif-goose/goose/commit/3fbea00fd44f6496ee4afe2b8b2897c3c95d63e9Patch
- https://github.com/aaif-goose/goose/pull/12537Issue TrackerPatch
- https://github.com/aaif-goose/goose/pull/13469Issue TrackerPatch
- goose v1.53.0 Release NotesRelease Notes
- https://github.com/aaif-goose/goose/blob/302b60806639ea9f0ae8f053f49f8bf0e88b26f4/crates/goose-cli/src/commands/review/handler.rs#L400Technical Details
- VulnCheck Advisory: goose CLI 1.35.0 before 1.53.0 Command Execution via goose review diff.externalThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.