Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
Firefox for iOS Adds Native Ad and Tracker Blocking
September 2, 2026
Google Gemini 3.8 Flash Automates Vulnerability Identification and Patching
September 2, 2026
Critical GitSpawn Flaws Let Malicious Repositories Execute Code in AI Coding Tools
September 2, 2026
Home/CyberSecurity News/Critical GitSpawn Flaws Let Malicious Repositories Execute Code in AI Coding Tools
CyberSecurity News

Critical GitSpawn Flaws Let Malicious Repositories Execute Code in AI Coding Tools

Key Takeaways A new class of vulnerabilities, named GitSpawn, enables malicious code execution via booby-trapped Git repositories. AI coding agents can trigger these flaws by automatically running...

Marcus Rodriguez
Marcus Rodriguez
September 2, 2026 3 Min Read
2 0

Key Takeaways

  • A new class of vulnerabilities, named GitSpawn, enables malicious code execution via booby-trapped Git repositories.
  • AI coding agents can trigger these flaws by automatically running Git commands, leading to silent code execution before user authentication or interaction.
  • The attack leverages Git’s core.fsmonitor setting, which allows arbitrary commands embedded in a repository’s .git/config file to execute.
  • Several popular AI coding tools, including Claude Code, Goose, Hermes Agent, Qwen Code, and Grok Build, were confirmed vulnerable, with some still unpatched.
  • Developers should exercise caution when opening repositories received as raw files, and vendors must implement sanitization for Git configurations.

Critical GitSpawn Flaws Expose AI Coding Tools to Silent Code Execution

A recently discovered category of security vulnerabilities, collectively termed GitSpawn, allows specially crafted Git repositories to execute arbitrary code on a developer’s machine without any explicit user action. This silent compromise occurs the moment an AI coding agent accesses the repository, often before the user has even authenticated or typed a single command.

Table Of Content

  • Key Takeaways
  • Critical GitSpawn Flaws Expose AI Coding Tools to Silent Code Execution
  • The Mechanics of the Attack
  • Affected AI Coding Tools and Remediation Status
  • What You Should Do

The Mechanics of the Attack

Security researchers at Manifold Security uncovered these critical flaws during an investigation into the startup behavior of various command-line interface (CLI) based coding agents. Their findings, detailed in a comprehensive Manifold Security report, reveal that most agents routinely execute Git commands like git status or git diff in the background to gather project context. While seemingly innocuous, these commands trigger Git to refresh its internal index, a process where the vulnerability lies.

Git includes a performance feature, core.fsmonitor, designed to specify a helper program that Git automatically runs whenever the index is refreshed. Crucially, this setting is read directly from the repository’s own .git/config file. A malicious repository can embed an arbitrary command within this configuration. Consequently, when an AI agent performs a routine Git command for context gathering, this embedded command executes with the full privileges of the logged-in user, entirely outside any sandboxing or permission systems, and completely invisibly.

It’s important to note that this attack vector cannot be exploited through standard Git operations such as git clone, fetch, or pull, as these actions do not transmit a hostile .git/config file. Instead, the compromised repository must be delivered as raw files with its .git directory intact. Common methods for such delivery include zipped folders, shared network drives, synced directories, or USB sticks – typical means by which developers exchange projects with colleagues and consultants.

Affected AI Coding Tools and Remediation Status

The research team successfully verified the GitSpawn vulnerability across several prominent AI coding platforms, including Claude Code, Goose, Hermes Agent, Qwen Code, and Grok Build. These tools collectively account for nearly half a million GitHub stars, with Claude Code alone boasting over 77 million monthly npm downloads. OpenAI’s Codex and Cursor were also found susceptible to variants of these flaws; both vendors issued patches following independent reports from other researchers.

Out of eight identified issues, four remain unpatched at the time of publication. This includes a distinct flaw in Claude Code’s ultrareview command, which exploits a different Git configuration key than core.fsmonitor. The specifics of this key were intentionally withheld by researchers to prevent providing attackers with a readily usable exploit template.

Goose has already addressed its vulnerability and has been assigned CVE-2026-72718. Hermes Agent, however, remains unpatched, with its vulnerability independently assigned CVE-2026-71963 after the vendor failed to respond to six contact attempts from the researchers.

What You Should Do

  • Inspect Repositories: Developers who receive Git repositories as raw files (e.g., in a ZIP archive or via a USB drive) rather than through a git clone operation should meticulously inspect the .git/config file for any suspicious entries before opening it with an AI coding agent.
  • Vendor Action: Vendors of AI coding agents are strongly urged to implement robust sanitization of Git configurations during background context-gathering calls. Specifically, explicitly disabling or neutralizing the core.fsmonitor setting for untrusted repositories can effectively mitigate this entire class of silent, pre-authentication code execution vulnerabilities.
  • Stay Updated: Ensure all AI coding tools and Git clients are updated to their latest versions to benefit from any available patches.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackCVEPatchSecurityVulnerability

Share Article

Marcus Rodriguez

Marcus Rodriguez

Marcus is a security researcher and investigative journalist with expertise in vulnerability research, bug bounties, and cloud security. Since 2017, Marcus has been breaking stories on critical vulnerabilities affecting major platforms. His investigative work has led to the disclosure of numerous security flaws and improved defenses across the industry. Marcus is an active participant in bug bounty programs and has been recognized for responsible disclosure practices. He holds multiple security certifications and regularly speaks at industry events.

Previous Post

Dropbox Confirms 5,000 Accounts Compromised via Lenovo ID Flaw

Next Post

Google Gemini 3.8 Flash Automates Vulnerability Identification and Patching

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
Russian Hacker Indicted for TVRAT and DarkVNC Excel Malware Attacks
September 2, 2026
FBI and CrowdStrike Disrupt Sality Botnet
September 2, 2026
Cleo Harmony Flaw Lets Remote Attackers Escalate Privileges via JWT Refresh Token
September 2, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
David kimber
David kimber
Jennifer sherman
Jennifer sherman
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Released to Detect MongoDB Vulnerability(CVE-2025-14847)

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us