Versions mentioned in the description apply to the upstream
Remediation section below for
Debian:8 relevant versions.
The _validaterepo function in sshpeer in Mercurial before 3.2.4 allows remote attackers to execute arbitrary commands via a crafted repository name in a clone command.
mercurial to version 3.1.2-2+deb8u1 or higher.