Improper Encoding or Escaping of Output in go-git - CVE-2026-45570
Published: May 19, 2026
go-git
Detailed vulnerability description
The vulnerability allows a remote attacker to execute commands in the SSH server account context.
The vulnerability exists due to improper encoding or escaping of output in the SSH transport remote exec command construction when processing a repository path containing a single quote. A remote attacker can supply a crafted repository path to execute commands in the SSH server account context.
Exploitation requires an SSH server configuration that evaluates the exec command through a shell; canonical git-shell setups that tokenize the exec command without shell evaluation are not affected.