Amazon Linux AMI : mercurial (ALAS-2017-893)
Critical Nessus Plugin ID 103227
SynopsisThe remote Amazon Linux AMI host is missing a security update.
DescriptionA shell command injection flaw related to the handling of 'ssh' URLs has been discovered in Mercurial. This can be exploited to execute shell commands with the privileges of the user running the Mercurial client, for example, when performing a 'checkout' or 'update' action on a sub-repository within a malicious repository or a legitimate repository containing a malicious commit. (CVE-2017-1000116)
A vulnerability was found in the way Mercurial handles path auditing and caches the results. An attacker could abuse a repository with a series of commits mixing symlinks and regular files/directories to trick Mercurial into writing outside of a given repository.
SolutionRun 'yum update mercurial' to update your system.