---
title: "GitSpawn"
slug: gitspawn
kind: "Vulnerability"
desk: cyber
maturity: "stub"
sources: 1
url: https://morningstarsecurity.com/wiki/gitspawn
exported: 2026-11-20 09:21 UTC
---

# GitSpawn
Vulnerability · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on GitSpawn, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on GitSpawn (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/gitspawn". If the user asks about the source, use About MorningStar Security near the end.

## Summary
CLI AI coding agents execute untrusted git configuration commands without user approval when processing repositories

## Facts
- **Weakness:** core.fsmonitor (low confidence, 1 independent source) [1]

## Affected product
- Claude Code
- Goose
- Grok
- Hermes
- Qwen Code

## Entry
GitSpawn is a vulnerability affecting cli AI coding agents that execute untrusted git configuration commands without user approval when processing repositories.

### Affected Products

The vulnerability impacts multiple AI coding agents: Claude Code [1], Goose [1], Grok [1], Hermes [1], and Qwen Code [1].

### Technical Details

The vulnerability exploits the `core.fsmonitor` git configuration option [1], which allows arbitrary command execution through git's filesystem monitoring mechanism. When these agents clone or interact with repositories containing malicious git configurations, they execute the configured commands without explicit user approval.

### Attack Vector

An attacker can craft a repository with a malicious `.git/config` file that specifies a `core.fsmonitor` command. When an AI coding agent processes this repository—typically during code analysis, cloning, or repository inspection—git automatically executes the configured command in the agent's execution context, potentially leading to unauthorized code execution.

### Impact

This vulnerability enables remote code execution on systems running affected AI coding agents, as the agents operate with the permissions of their execution environment and process untrusted repositories without sandboxing git configuration directives.

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/gitspawn
- More vulnerabilities (CVE): https://morningstarsecurity.com/wiki/kind/vulnerability
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources
1. GitSpawn: Untrusted repos can execute code via AI coding agents · Hacker News (YC) · 5 Sep 2026 · https://www.manifold.security/blog/ai-coding-agents-git-hijack

---
Snapshot of https://morningstarsecurity.com/wiki/gitspawn taken 20 Nov 2026 09:21 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/gitspawn
