cve.bz

CVE-2026-72718 aaif-goose goose: Code Injection

7.0 highEPSS 0.2%

High (7.0) in aaif-goose goose. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

7.0 high
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-08-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-72718 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-72718?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-72718?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-72718 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
aaif-goose goose< 1.44.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatenterprise_linux:9::extensionsgoose, goose-debuginfo, goose-debugsource0:1.45.0-1.el9_8RHSA-2026:80764
Red Hatenterprise_linux:10.2goose, goose-debuginfo, goose-debugsource0:1.45.0-1.el10_2RHSA-2026:80765

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as an Important impact because successful exploitation permits arbitrary code execution under the privileges of the active user, compromising sensitive credentials, API keys, and local files. The issue is triggered when a developer executes the review workflow within an untrusted repository containing crafted configuration directives. Although user interaction is required to analyze untrusted code, execution occurs automatically before model interaction or agent permission checks take effect.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10goose-0:1.45.0-1.el10_2Fixed 2026-10-12RHSA-2026:80765
Red Hat Enterprise Linux 9goose-0:1.45.0-1.el9_8Fixed 2026-10-12RHSA-2026:80764

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-72718.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON