RHSA-2017:2489

Type: Security
Severity: Important
Published: 2017-08-17
Red Hat Enterprise Linux 7

Mercurial is a fast, lightweight source control management system designed for efficient handling of very large distributed projects. Security Fix(es): * 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. (CVE-2017-1000115) * A 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) Red Hat would like to thank the Mercurial Security Team for reporting CVE-2017-1000115 and the Subversion Team for reporting CVE-2017-1000116.

Evidence and freshness

Data current

Last supporting evidence check: 2026-11-27T23:03:15.203Z UTC

Official vendor advisory

Red Hat Enterprise Linux 7

View source
Observed 2026-11-27T23:03:15.203Z UTC. Last updated 2026-10-07T05:16:14.865Z UTC.

Upstream Advisory

Affected Packages

  • emacs-mercurial 2.6.2-8.el7_4

  • emacs-mercurial-el 2.6.2-8.el7_4

  • mercurial 2.6.2-8.el7_4

  • mercurial-hgk 2.6.2-8.el7_4

Interested in being alerted when there are new versions of emacs-mercurial and the other packages? Set up an alert.
RHSA-2017:2489: mercurial security update | Package Alert