GitLab
Follow
DeepSeek-Reasonix: How a poisoned config can hijack an AI coding agent
GitLab's Threat Research Group uncovered ConfigPoisoning, a critical command execution vulnerability in DeepSeek-Reasonix Studio (CVE-2026-102437), an AI-assisted desktop git client. This flaw allows attacker-supplied code to execute when a developer views a file's diff under specific repository configuration conditions. The vulnerability stems from DeepSeek-Reasonix’s failure to fully neutralize dangerous git configuration keys, specifically filter..clean, which git selects per file through .gitattributes. Despite hardening against some keys, DeepSeek-Reasonix's git wrapper did not address this specific filter, leading to command execution.To mitigate this, users must update to DeepSeek-Reasonix Studio 2.21.0 or DeepSeek Reasonix npm 1.39.3 immediately. This is not an isolated incident; other coding agents are susceptible to similar vulnerabilities where attacker-controlled commands run from .git/config and .gitattributes files. These tools often treat repository configurations as their own settings, a critical trust failure.The full attack chain involves a malicious .gitattributes entry assigning a file to a filter driver, whose clean command is defined in .git/config by the attacker. When a developer views the file's diff, DeepSeek-Reasonix's hardened command still allows the clean filter to run, executing the attacker's script. While .gitattributes survives cloning, .git/config does not. However, a compromised coding agent can directly inject a poisoned .git/config into an already cloned repository.Developers building git-wrapping tools are advised to override every relevant git configuration key on every call (e.g., core.fsmonitor, diff.external, filter..clean). They should also consider using git cat-file or git show for blob reading and diffing in-process to avoid shelling out entirely. Security teams should inquire with vendors about how they neutralize repository-local configurations. This pattern of trusting repository-controlled files has been observed in other AI coding tools, highlighting a broader security concern within this new category of tools. GitLab plans to disclose details on other affected tools as fixes become available.