Versions mentioned in the description apply to the upstream
Remediation section below for
Debian:8 relevant versions.
contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a malicious repository to cause code execution.
git to version 1:2.0.0~rc2-1 or higher.