Skip to content
Rush Commerce
Software & Dev4 min read

GitSpawn: a zipped repo runs code in your coding agent

Manifold Security found that a repo's own .git/config can execute commands the moment a coding agent opens it — no prompt, no approval. Here's the one-line fix.

Somebody emails you a zip of a client's codebase. You unzip it, point Claude Code or Codex at the folder, and before you type a single word, the repo has already run a command on your laptop. That's GitSpawn, a vulnerability class Manifold Security disclosed on September 1 across eight findings in seven coding agents. There is no model exploit here and no clever prompt injection. It's Git doing exactly what Git has always done, in a place nobody put a permission check.

What actually happened

Every CLI coding agent gathers context at startup by shelling out to Git — git status, git diff, whatever tells it where it is. Those commands refresh Git's index. And index refresh honors core.fsmonitor, a legitimate performance setting whose value is a command Git executes, read from the repository's own .git/config.

So the attacker doesn't need your agent to be tricked. They need your agent to look at the repo.

The exploitation prerequisite is the interesting constraint: the repository has to arrive as files with the .git directory intact — a zip, a shared drive, a USB stick, a client handoff. A normal git clone is safe, because clone writes its own config. Timing varies by agent, and it is worse than you'd hope: payloads fire before the workspace-trust prompt on Claude Code, before authentication on Qwen Code, and on the first keystroke in Grok Build.

Manifold's status table as published:

  • Claude Codecore.fsmonitor path patched in 2.1.196; a second path via ultrareview reported at 2.1.252, unpatched
  • goose — fixed in 1.44.0, tracked as CVE-2026-72718
  • OpenAI Codex and Cursor — patched
  • Hermes Agent (CVE-2026-71963), Qwen Code, Grok Buildunpatched at disclosure

Vendor response was uneven. The Hacker News reports Alibaba accepted the Qwen Code report on July 7 without shipping a fix, and Nous Research left the Hermes advisory untriaged across six contact attempts. No confirmed in-the-wild exploitation yet.

Why this matters for your business

If your team runs coding agents, you have quietly changed your threat model and nobody wrote it down. The old rule was "don't run untrusted code." The new rule has to be "opening a folder is running code," because the agent executes subprocesses on your behalf before it shows you anything.

Think about how repos actually reach a small studio. A client sends a zip because they don't want to add you to their GitHub org. A contractor drops a folder in Drive. You restore a project from a backup archive. Every one of those paths carries .git/config along for the ride, and every one of them skips the clone that would have sanitized it.

The fix Manifold recommends is one flag on the calls the agent makes in the background:

git -c core.fsmonitor=false status

That is a vendor-side change. What you control is the intake path. Treat any repo that arrives as files, not as a clone, as untrusted: cat .git/config before you open the folder, or delete .git and re-init if you only needed the code. Better, do the first pass in a container or a VM. And update your agents — the patched versions above exist, but only if somebody actually pulls them.

Key takeaways

  • GitSpawn abuses core.fsmonitor in a repo's own .git/config, which Git executes during routine index refresh
  • Eight findings across seven agents; Claude Code, Codex, Cursor and goose are patched, Hermes Agent, Qwen Code and Grok Build were not at disclosure
  • Payloads fire before workspace-trust prompts, before authentication, or on first keystroke depending on the agent
  • Cloned repos are safe — the risk is repos that arrive as zips, shared drives, USB sticks, or backup archives
  • Inspect or strip .git/config on any repo you didn't clone yourself, and pin your agents to patched versions

Agents earn their keep right up until nobody owns their blast radius. We set up coding-agent workflows with real sandboxing, a checked intake path for outside code, and an update policy that isn't "whenever someone notices." Talk to us about your agent setup or see how we build dev tooling you can audit.

Sources: Manifold Security, The Hacker News.

  • #gitspawn
  • #coding-agents
  • #security
  • #claude-code
  • #supply-chain
TR

Tommy Rush — Founder, Rush Commerce

Operator turned builder. 15+ years running operations — now shipping the systems businesses run on. More

Get The Rush Report weekly — one email, zero fluff.