ID CVE-2017-1000116
Summary Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.
References
Vulnerable Configurations
  • Mercurial 1.6.0
    cpe:2.3:a:mercurial:mercurial:1.6.0
  • Mercurial 1.6.1
    cpe:2.3:a:mercurial:mercurial:1.6.1
  • Mercurial 1.6.2
    cpe:2.3:a:mercurial:mercurial:1.6.2
  • Mercurial 1.6.3
    cpe:2.3:a:mercurial:mercurial:1.6.3
  • Mercurial 1.6.4
    cpe:2.3:a:mercurial:mercurial:1.6.4
  • Mercurial 1.7.0
    cpe:2.3:a:mercurial:mercurial:1.7.0
  • Mercurial 1.7.1
    cpe:2.3:a:mercurial:mercurial:1.7.1
  • Mercurial 1.7.2
    cpe:2.3:a:mercurial:mercurial:1.7.2
  • Mercurial 1.7.3
    cpe:2.3:a:mercurial:mercurial:1.7.3
  • Mercurial 1.7.4
    cpe:2.3:a:mercurial:mercurial:1.7.4
  • Mercurial 1.7.5
    cpe:2.3:a:mercurial:mercurial:1.7.5
  • Mercurial 1.8.0
    cpe:2.3:a:mercurial:mercurial:1.8.0
  • Mercurial 1.8.1
    cpe:2.3:a:mercurial:mercurial:1.8.1
  • Mercurial 1.8.2
    cpe:2.3:a:mercurial:mercurial:1.8.2
  • Mercurial 1.8.3
    cpe:2.3:a:mercurial:mercurial:1.8.3
  • Mercurial 1.8.4
    cpe:2.3:a:mercurial:mercurial:1.8.4
  • Mercurial 1.9.0
    cpe:2.3:a:mercurial:mercurial:1.9.0
  • Mercurial 1.9.1
    cpe:2.3:a:mercurial:mercurial:1.9.1
  • Mercurial 1.9.2
    cpe:2.3:a:mercurial:mercurial:1.9.2
  • Mercurial 1.9.3
    cpe:2.3:a:mercurial:mercurial:1.9.3
  • Mercurial 2.0.0
    cpe:2.3:a:mercurial:mercurial:2.0.0
  • Mercurial 2.0.1
    cpe:2.3:a:mercurial:mercurial:2.0.1
  • Mercurial 2.0.2
    cpe:2.3:a:mercurial:mercurial:2.0.2
  • Mercurial 2.1.0
    cpe:2.3:a:mercurial:mercurial:2.1.0
  • Mercurial 2.1.1
    cpe:2.3:a:mercurial:mercurial:2.1.1
  • Mercurial 2.1.2
    cpe:2.3:a:mercurial:mercurial:2.1.2
  • Mercurial 2.2.0
    cpe:2.3:a:mercurial:mercurial:2.2.0
  • Mercurial 2.2.1
    cpe:2.3:a:mercurial:mercurial:2.2.1
  • Mercurial 2.2.2
    cpe:2.3:a:mercurial:mercurial:2.2.2
  • Mercurial 2.2.3
    cpe:2.3:a:mercurial:mercurial:2.2.3
  • Mercurial 2.3.0
    cpe:2.3:a:mercurial:mercurial:2.3.0
  • Mercurial 2.3.1
    cpe:2.3:a:mercurial:mercurial:2.3.1
  • Mercurial 2.3.2
    cpe:2.3:a:mercurial:mercurial:2.3.2
  • Mercurial 2.4.0
    cpe:2.3:a:mercurial:mercurial:2.4.0
  • Mercurial 2.4.1
    cpe:2.3:a:mercurial:mercurial:2.4.1
  • Mercurial 2.4.2
    cpe:2.3:a:mercurial:mercurial:2.4.2
  • Mercurial 2.5.0
    cpe:2.3:a:mercurial:mercurial:2.5.0
  • Mercurial 2.5.1
    cpe:2.3:a:mercurial:mercurial:2.5.1
  • Mercurial 2.5.2
    cpe:2.3:a:mercurial:mercurial:2.5.2
  • Mercurial 2.5.3
    cpe:2.3:a:mercurial:mercurial:2.5.3
  • Mercurial 2.5.4
    cpe:2.3:a:mercurial:mercurial:2.5.4
  • Mercurial 2.6.0
    cpe:2.3:a:mercurial:mercurial:2.6.0
  • Mercurial 2.6.1
    cpe:2.3:a:mercurial:mercurial:2.6.1
  • Mercurial 2.6.2
    cpe:2.3:a:mercurial:mercurial:2.6.2
  • Mercurial 2.6.3
    cpe:2.3:a:mercurial:mercurial:2.6.3
  • Mercurial 2.7.0
    cpe:2.3:a:mercurial:mercurial:2.7.0
  • Mercurial 2.7.1
    cpe:2.3:a:mercurial:mercurial:2.7.1
  • Mercurial 2.7.2
    cpe:2.3:a:mercurial:mercurial:2.7.2
  • Mercurial 2.8.0
    cpe:2.3:a:mercurial:mercurial:2.8.0
  • Mercurial 2.8.1
    cpe:2.3:a:mercurial:mercurial:2.8.1
  • Mercurial 2.8.2
    cpe:2.3:a:mercurial:mercurial:2.8.2
  • Mercurial 2.9.0
    cpe:2.3:a:mercurial:mercurial:2.9.0
  • Mercurial 2.9.1
    cpe:2.3:a:mercurial:mercurial:2.9.1
  • Mercurial 2.9.2
    cpe:2.3:a:mercurial:mercurial:2.9.2
  • Mercurial 3.0.0
    cpe:2.3:a:mercurial:mercurial:3.0.0
  • Mercurial 3.0.1
    cpe:2.3:a:mercurial:mercurial:3.0.1
  • Mercurial 3.0.2
    cpe:2.3:a:mercurial:mercurial:3.0.2
  • Mercurial 3.1.0
    cpe:2.3:a:mercurial:mercurial:3.1.0
  • Mercurial 3.1.1
    cpe:2.3:a:mercurial:mercurial:3.1.1
  • Mercurial 3.1.2
    cpe:2.3:a:mercurial:mercurial:3.1.2
  • Mercurial 3.2.0
    cpe:2.3:a:mercurial:mercurial:3.2.0
  • Mercurial 3.2.1
    cpe:2.3:a:mercurial:mercurial:3.2.1
  • Mercurial 3.2.2
    cpe:2.3:a:mercurial:mercurial:3.2.2
  • Mercurial Mercurial 3.2.3
    cpe:2.3:a:mercurial:mercurial:3.2.3
  • Mercurial 3.2.4
    cpe:2.3:a:mercurial:mercurial:3.2.4
  • Mercurial 3.3.0
    cpe:2.3:a:mercurial:mercurial:3.3.0
  • Mercurial 3.3.1
    cpe:2.3:a:mercurial:mercurial:3.3.1
  • Mercurial 3.3.2
    cpe:2.3:a:mercurial:mercurial:3.3.2
  • Mercurial 3.3.3
    cpe:2.3:a:mercurial:mercurial:3.3.3
  • Mercurial 3.4.0
    cpe:2.3:a:mercurial:mercurial:3.4.0
  • Mercurial 3.4.1
    cpe:2.3:a:mercurial:mercurial:3.4.1
  • Mercurial 3.4.2
    cpe:2.3:a:mercurial:mercurial:3.4.2
  • Mercurial 3.5.0
    cpe:2.3:a:mercurial:mercurial:3.5.0
  • Mercurial 3.5.1
    cpe:2.3:a:mercurial:mercurial:3.5.1
  • Mercurial 3.5.2
    cpe:2.3:a:mercurial:mercurial:3.5.2
  • Mercurial 3.6.0
    cpe:2.3:a:mercurial:mercurial:3.6.0
  • Mercurial 3.6.1
    cpe:2.3:a:mercurial:mercurial:3.6.1
  • Mercurial 3.6.2
    cpe:2.3:a:mercurial:mercurial:3.6.2
  • Mercurial 3.6.3
    cpe:2.3:a:mercurial:mercurial:3.6.3
  • Mercurial 3.7.0
    cpe:2.3:a:mercurial:mercurial:3.7.0
  • Mercurial 3.7.1
    cpe:2.3:a:mercurial:mercurial:3.7.1
  • Mercurial Mercurial 3.7.2
    cpe:2.3:a:mercurial:mercurial:3.7.2
  • Mercurial Mercurial 3.7.3
    cpe:2.3:a:mercurial:mercurial:3.7.3
  • Mercurial 3.8.0
    cpe:2.3:a:mercurial:mercurial:3.8.0
  • Mercurial 3.8.1
    cpe:2.3:a:mercurial:mercurial:3.8.1
  • Mercurial 3.8.2
    cpe:2.3:a:mercurial:mercurial:3.8.2
  • Mercurial 3.8.3
    cpe:2.3:a:mercurial:mercurial:3.8.3
  • Mercurial 3.8.4
    cpe:2.3:a:mercurial:mercurial:3.8.4
  • Mercurial 3.9.0
    cpe:2.3:a:mercurial:mercurial:3.9.0
  • Mercurial 3.9.1
    cpe:2.3:a:mercurial:mercurial:3.9.1
  • Mercurial 3.9.2
    cpe:2.3:a:mercurial:mercurial:3.9.2
  • Mercurial 4.0
    cpe:2.3:a:mercurial:mercurial:4.0
  • Mercurial 4.0.1
    cpe:2.3:a:mercurial:mercurial:4.0.1
  • Mercurial 4.0.2
    cpe:2.3:a:mercurial:mercurial:4.0.2
  • Mercurial 4.1
    cpe:2.3:a:mercurial:mercurial:4.1
  • Mercurial 4.1.0
    cpe:2.3:a:mercurial:mercurial:4.1.0
  • Mercurial 4.1.1
    cpe:2.3:a:mercurial:mercurial:4.1.1
  • Mercurial 4.1.2
    cpe:2.3:a:mercurial:mercurial:4.1.2
  • Mercurial 4.1.3
    cpe:2.3:a:mercurial:mercurial:4.1.3
  • Mercurial 4.2
    cpe:2.3:a:mercurial:mercurial:4.2
  • Mercurial 4.2.0
    cpe:2.3:a:mercurial:mercurial:4.2.0
  • Mercurial 4.2.1
    cpe:2.3:a:mercurial:mercurial:4.2.1
  • Mercurial 4.2.2
    cpe:2.3:a:mercurial:mercurial:4.2.2
  • Mercurial 4.2.3
    cpe:2.3:a:mercurial:mercurial:4.2.3
  • Debian Linux 8.0 (Jessie)
    cpe:2.3:o:debian:debian_linux:8.0
  • Debian Linux 9.0
    cpe:2.3:o:debian:debian_linux:9.0
  • RedHat Enterprise Linux Desktop 7.0
    cpe:2.3:o:redhat:enterprise_linux_desktop:7.0
  • RedHat Enterprise Linux Server 7.0
    cpe:2.3:o:redhat:enterprise_linux_server:7.0
  • Red Hat Enterprise Linux Server Advanced mission critical Update Support (AUS) 7.4
    cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4
  • Red Hat Enterprise Linux Server Advanced mission critical Update Support (AUS) 7.6
    cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6
  • Red Hat Enterprise Linux Server Extended Update Support (EUS) 7.4
    cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4
  • Red Hat Enterprise Linux Server Extended Update Support (EUS) 7.5
    cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5
  • Red Hat Enterprise Linux Server Extended Update Support (EUS) 7.6
    cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6
  • Red Hat Enterprise Linux Server TUS 7.4
    cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4
  • Red Hat Enterprise Linux Server Telecommunications Update Service (TUS) 7.6
    cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6
  • RedHat Enterprise Linux Workstation 7.0
    cpe:2.3:o:redhat:enterprise_linux_workstation:7.0
CVSS
Base: 10.0
Impact:
Exploitability:
CWE CWE-77
CAPEC
  • Cause Web Server Misclassification
    An attack of this type exploits a Web server's decision to take action based on filename or file extension. Because different file types are handled by different server processes, misclassification may force the Web server to take unexpected action, or expected actions in an unexpected sequence. This may cause the server to exhaust resources, supply debug or system data to the attacker, or bind an attacker to a remote process. This type of vulnerability has been found in many widely used servers including IIS, Lotus Domino, and Orion. The attacker's job in this case is straightforward, standard communication protocols and methods are used and are generally appended with malicious information at the tail end of an otherwise legitimate request. The attack payload varies, but it could be special characters like a period or simply appending a tag that has a special meaning for operations on the server side like .jsp for a java application server. The essence of this attack is that the attacker deceives the server into executing functionality based on the name of the request, i.e. login.jsp, not the contents.
  • LDAP Injection
    An attacker manipulates or crafts an LDAP query for the purpose of undermining the security of the target. Some applications use user input to create LDAP queries that are processed by an LDAP server. For example, a user might provide their username during authentication and the username might be inserted in an LDAP query during the authentication process. An attacker could use this input to inject additional commands into an LDAP query that could disclose sensitive information. For example, entering a * in the aforementioned query might return information about all users on the system. This attack is very similar to an SQL injection attack in that it manipulates a query to gather additional information or coerce a particular return value.
  • Command Delimiters
    An attack of this type exploits a programs' vulnerabilities that allows an attacker's commands to be concatenated onto a legitimate command with the intent of targeting other resources such as the file system or database. The system that uses a filter or a blacklist input validation, as opposed to whitelist validation is vulnerable to an attacker who predicts delimiters (or combinations of delimiters) not present in the filter or blacklist. As with other injection attacks, the attacker uses the command delimiter payload as an entry point to tunnel through the application and activate additional attacks through SQL queries, shell commands, network scanning, and so on.
  • File System Function Injection, Content Based
    An attack of this type exploits the host's trust in executing remote content including binary files. The files are poisoned with a malicious payload (targeting the file systems accessible by the target software) by the attacker and may be passed through standard channels such as via email, and standard web content like PDF and multimedia files. The attacker exploits known vulnerabilities or handling routines in the target processes. Vulnerabilities of this type have been found in a wide variety of commercial applications from Microsoft Office to Adobe Acrobat and Apple Safari web browser. When the attacker knows the standard handling routines and can identify vulnerabilities and entry points they can be exploited by otherwise seemingly normal content. Once the attack is executed, the attackers' program can access relative directories such as C:\Program Files or other standard system directories to launch further attacks. In a worst case scenario, these programs are combined with other propagation logic and work as a virus.
  • Exploiting Multiple Input Interpretation Layers
    An attacker supplies the target software with input data that contains sequences of special characters designed to bypass input validation logic. This exploit relies on the target making multiples passes over the input data and processing a "layer" of special characters with each pass. In this manner, the attacker can disguise input that would otherwise be rejected as invalid by concealing it with layers of special/escape characters that are stripped off by subsequent processing steps. The goal is to first discover cases where the input validation layer executes before one or more parsing layers. That is, user input may go through the following logic in an application: In such cases, the attacker will need to provide input that will pass through the input validator, but after passing through parser2, will be converted into something that the input validator was supposed to stop.
  • Argument Injection
    An attacker changes the behavior or state of a targeted application through injecting data or command syntax through the targets use of non-validated and non-filtered arguments of exposed services or methods.
  • Manipulating Writeable Configuration Files
    Generally these are manually edited files that are not in the preview of the system administrators, any ability on the attackers' behalf to modify these files, for example in a CVS repository, gives unauthorized access directly to the application, the same as authorized users.
  • Manipulating Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
nessus via4
  • NASL family CentOS Local Security Checks
    NASL id CENTOS_RHSA-2017-2489.NASL
    description An update for mercurial is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. 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.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 102880
    published 2017-09-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102880
    title CentOS 7 : mercurial (CESA-2017:2489)
  • NASL family Amazon Linux Local Security Checks
    NASL id ALA_ALAS-2017-893.NASL
    description 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) 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)
    last seen 2019-02-21
    modified 2018-04-18
    plugin id 103227
    published 2017-09-15
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=103227
    title Amazon Linux AMI : mercurial (ALAS-2017-893)
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201709-18.NASL
    description The remote host is affected by the vulnerability described in GLSA-201709-18 (Mercurial: Multiple vulnerabilities) Multiple vulnerabilities have been discovered in Mercurial. Please review the referenced CVE identifiers for details. Impact : A remote attacker could possibly execute arbitrary code with the privileges of the process. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2018-07-13
    plugin id 103446
    published 2017-09-25
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=103446
    title GLSA-201709-18 : Mercurial: Multiple vulnerabilities
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-3963.NASL
    description Several issues were discovered in Mercurial, a distributed revision control system. - CVE-2017-9462 (fixed in stretch only) Jonathan Claudius of Mozilla discovered that repositories served over stdio could be tricked into granting authorized users access to the Python debugger. - CVE-2017-1000115 Mercurial's symlink auditing was incomplete, and could be abused to write files outside the repository. - CVE-2017-1000116 Joern Schneeweisz discovered that Mercurial did not correctly handle maliciously constructed ssh:// URLs. This allowed an attacker to run an arbitrary shell command.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 102930
    published 2017-09-05
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102930
    title Debian DSA-3963-1 : mercurial - security update
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_1D33CDEE7F6B11E7A9B53DEBB10A6871.NASL
    description Mercurial Release Notes : CVE-2017-1000115 Mercurial's symlink auditing was incomplete prior to 4.3, and could be abused to write to files outside the repository. CVE-2017-1000116 Mercurial was not sanitizing hostnames passed to ssh, allowing shell injection attacks on clients by specifying a hostname starting with -oProxyCommand. This is also present in Git (CVE-2017-1000117) and Subversion (CVE-2017-9800), so please patch those tools as well if you have them installed.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 102465
    published 2017-08-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102465
    title FreeBSD : Mercurial -- multiple vulnerabilities (1d33cdee-7f6b-11e7-a9b5-3debb10a6871)
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2017-941.NASL
    description This update for mercurial fixes the following issues : Mercurial was updated to 4.2.3, a security fix update for - CVE-2017-1000115: Incomplete symlink auditing allowed writing to files outside of the repository (boo#1053344) - CVE-2017-1000116: Client-side code execution via argument injection in SSH URLs (boo#1052696)
    last seen 2019-02-21
    modified 2018-01-26
    plugin id 102560
    published 2017-08-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102560
    title openSUSE Security Update : mercurial (openSUSE-2017-941)
  • NASL family Huawei Local Security Checks
    NASL id EULEROS_SA-2017-1217.NASL
    description According to the versions of the mercurial package installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - 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) Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-14
    plugin id 103075
    published 2017-09-11
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=103075
    title EulerOS 2.0 SP1 : mercurial (EulerOS-SA-2017-1217)
  • NASL family Oracle Linux Local Security Checks
    NASL id ORACLELINUX_ELSA-2017-2489.NASL
    description From Red Hat Security Advisory 2017:2489 : An update for mercurial is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. 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.
    last seen 2019-02-21
    modified 2018-07-25
    plugin id 102571
    published 2017-08-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102571
    title Oracle Linux 7 : mercurial (ELSA-2017-2489)
  • NASL family Huawei Local Security Checks
    NASL id EULEROS_SA-2017-1218.NASL
    description According to the versions of the mercurial package installed, the EulerOS installation on the remote host is affected by the following vulnerabilities : - 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) Note that Tenable Network Security has extracted the preceding description block directly from the EulerOS security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-11-14
    plugin id 103076
    published 2017-09-11
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=103076
    title EulerOS 2.0 SP2 : mercurial (EulerOS-SA-2017-1218)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2017-F03B04ACBB.NASL
    description Security fix for CVE-2017-1000115, CVE-2017-1000116 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-02-02
    plugin id 102832
    published 2017-08-30
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102832
    title Fedora 26 : mercurial (2017-f03b04acbb)
  • NASL family PhotonOS Local Security Checks
    NASL id PHOTONOS_PHSA-2017-0038.NASL
    description An update of [gnutls, c-ares, nginx, mercurial, linux, mesos, git, binutils, krb5, dnsmasq] packages for PhotonOS has been released.
    last seen 2019-02-21
    modified 2019-02-07
    plugin id 111887
    published 2018-08-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=111887
    title Photon OS 1.0: Binutils / C / Dnsmasq / Git / Gnutls / Krb5 / Linux / Mercurial / Mesos / Nginx PHSA-2017-0038 (deprecated)
  • NASL family Scientific Linux Local Security Checks
    NASL id SL_20170817_MERCURIAL_ON_SL7_X.NASL
    description 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)
    last seen 2019-02-21
    modified 2018-12-27
    plugin id 102676
    published 2017-08-22
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102676
    title Scientific Linux Security Update : mercurial on SL7.x x86_64
  • NASL family Red Hat Local Security Checks
    NASL id REDHAT-RHSA-2017-2489.NASL
    description An update for mercurial is now available for Red Hat Enterprise Linux 7. Red Hat Product Security has rated this update as having a security impact of Important. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section. 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.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 102575
    published 2017-08-18
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102575
    title RHEL 7 : mercurial (RHSA-2017:2489)
  • NASL family Fedora Local Security Checks
    NASL id FEDORA_2017-FA1D8AD61A.NASL
    description Security fix for CVE-2017-1000115, CVE-2017-1000116 Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-02-02
    plugin id 103554
    published 2017-09-29
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=103554
    title Fedora 25 : mercurial (2017-fa1d8ad61a)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DLA-1072.NASL
    description Two significant vulnerabilities were found in the Mercurial version control system which could lead to shell injection attacks and out-of-tree file overwrite. CVE-2017-1000115 Mercurial's symlink auditing was incomplete prior to 4.3, and could be abused to write to files outside the repository. CVE-2017-1000116 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.
    last seen 2019-02-21
    modified 2018-07-09
    plugin id 102886
    published 2017-09-01
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102886
    title Debian DLA-1072-1 : mercurial security update
  • NASL family FreeBSD Local Security Checks
    NASL id FREEBSD_PKG_B0628E53092A4037938B29805A7CD31B.NASL
    description mercurial developers reports : Mercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the repository Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.
    last seen 2019-02-21
    modified 2018-11-23
    plugin id 103861
    published 2017-10-17
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=103861
    title FreeBSD : mercurial -- multiple issues (b0628e53-092a-4037-938b-29805a7cd31b)
  • NASL family Slackware Local Security Checks
    NASL id SLACKWARE_SSA_2017-223-03.NASL
    description New mercurial packages are available for Slackware 14.0, 14.1, 14.2, and -current to fix security issues.
    last seen 2019-02-21
    modified 2018-01-26
    plugin id 102434
    published 2017-08-14
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=102434
    title Slackware 14.0 / 14.1 / 14.2 / current : mercurial (SSA:2017-223-03)
redhat via4
advisories
bugzilla
id 1480330
title CVE-2017-1000115 Mercurial: pathaudit: path traversal via symlink
oval
AND
  • OR
    • comment Red Hat Enterprise Linux 7 Client is installed
      oval oval:com.redhat.rhba:tst:20150364001
    • comment Red Hat Enterprise Linux 7 Server is installed
      oval oval:com.redhat.rhba:tst:20150364002
    • comment Red Hat Enterprise Linux 7 Workstation is installed
      oval oval:com.redhat.rhba:tst:20150364003
    • comment Red Hat Enterprise Linux 7 ComputeNode is installed
      oval oval:com.redhat.rhba:tst:20150364004
  • OR
    • AND
      • comment emacs-mercurial is earlier than 0:2.6.2-8.el7_4
        oval oval:com.redhat.rhsa:tst:20172489011
      • comment emacs-mercurial is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20160706010
    • AND
      • comment emacs-mercurial-el is earlier than 0:2.6.2-8.el7_4
        oval oval:com.redhat.rhsa:tst:20172489007
      • comment emacs-mercurial-el is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20160706008
    • AND
      • comment mercurial is earlier than 0:2.6.2-8.el7_4
        oval oval:com.redhat.rhsa:tst:20172489005
      • comment mercurial is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20160706012
    • AND
      • comment mercurial-hgk is earlier than 0:2.6.2-8.el7_4
        oval oval:com.redhat.rhsa:tst:20172489009
      • comment mercurial-hgk is signed with Red Hat redhatrelease2 key
        oval oval:com.redhat.rhsa:tst:20160706006
rhsa
id RHSA-2017:2489
released 2017-08-17
severity Important
title RHSA-2017:2489: mercurial security update (Important)
rpms
  • emacs-mercurial-0:2.6.2-8.el7_4
  • emacs-mercurial-el-0:2.6.2-8.el7_4
  • mercurial-0:2.6.2-8.el7_4
  • mercurial-hgk-0:2.6.2-8.el7_4
refmap via4
bid 100290
confirm https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.2F_4.3.1_.282017-08-10.29
debian DSA-3963
gentoo GLSA-201709-18
Last major update 04-10-2017 - 21:29
Published 04-10-2017 - 21:29
Last modified 10-05-2019 - 12:48
Back to Top