Simple-git versions before 4.1.0 are affected by an argument injection vulnerability identified as CVE-2026-134815, with a CVSS score of 9.2. This flaw allows attackers to bypass the allowUnsafePack guard by supplying the --exec option to non-push git operations.
Attackers who can influence arguments passed to listRemote() or raw() functions may inject --exec into commands such as ls-remote, archive, fetch-pack, or send-pack. Successful exploitation could lead to exposure of secrets, alteration of repositories or build outputs, and disruption of the host running the application.
The vulnerability has been addressed in simple-git version 4.1.0, specifically in commit c8ee6bb. Redpacketsecurity has rated the risk as potentially severe but notes that immediate exploitation urgency cannot be confirmed.
The attack complexity is high, requiring the attacker to reach an application input path. Exposure depends on whether untrusted input reaches these Git API calls, particularly affecting server-side applications, CI/build services, and repository integrations.
Recommended actions include upgrading to 4.1.0, allowlisting or rejecting Git arguments until patched, and reviewing logs for unexpected --exec arguments.
