Debian DLA-1072-1 : mercurial security update
Critical Nessus Plugin ID 102886
SynopsisThe remote Debian host is missing a security update.
DescriptionTwo significant vulnerabilities were found in the Mercurial version control system which could lead to shell injection attacks and out-of-tree file overwrite.
Mercurial's symlink auditing was incomplete prior to 4.3, and could be abused to write to files outside the repository.
Mercurial was not sanitizing hostnames passed to ssh, allowing shell injection attacks on clients by specifying a hostname starting with
-oProxyCommand. This vulnerability is similar to those in Git (CVE-2017-1000117) and Subversion (CVE-2017-9800).
For Debian 7 'Wheezy', these problems have been fixed in version 2.2.2-4+deb7u5.
We recommend that you upgrade your mercurial packages.
NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
SolutionUpgrade the affected mercurial, and mercurial-common packages.