Bug 2514571 - CVE-2026-72718 goose: Goose: Arbitrary command execution via malicious Git configuration in `goose review` [fedora-all]
Summary: CVE-2026-72718 goose: Goose: Arbitrary command execution via malicious Git co...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: goose
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: RHEL Lightspeed Maint
QA Contact:
URL:
Whiteboard: {"flaws": ["412b877a-d6f4-4bcf-9727-9...
Depends On:
Blocks: CVE-2026-72718
TreeView+ depends on / blocked
 
Reported: 2026-08-12 11:49 UTC by Marian Rehak
Modified: 2026-10-21 11:57 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-10-21 11:57:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Marian Rehak 2026-08-12 11:49:53 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Fedora Update System 2026-09-18 18:07:49 UTC
FEDORA-2026-cb99e9b2ac (goose-1.45.0-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-cb99e9b2ac

Comment 2 Fedora Update System 2026-09-18 22:10:18 UTC
FEDORA-2026-24f75e4c7a (goose-1.45.0-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-24f75e4c7a

Comment 3 Fedora Update System 2026-09-18 22:10:36 UTC
FEDORA-2026-5c0d326b15 (goose-1.45.0-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-5c0d326b15

Comment 4 Fedora Update System 2026-09-19 01:40:11 UTC
FEDORA-2026-cb99e9b2ac has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-cb99e9b2ac`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-cb99e9b2ac

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-09-19 02:19:48 UTC
FEDORA-2026-24f75e4c7a has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-24f75e4c7a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-24f75e4c7a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2026-09-19 02:23:21 UTC
FEDORA-2026-5c0d326b15 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-5c0d326b15`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-5c0d326b15

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-09-27 00:28:49 UTC
FEDORA-2026-cb99e9b2ac (goose-1.45.0-1.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2026-09-27 00:57:34 UTC
FEDORA-2026-24f75e4c7a (goose-1.45.0-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2026-09-27 01:12:21 UTC
FEDORA-2026-5c0d326b15 (goose-1.45.0-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.