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-78
CAPEC
  • Command Line Execution through SQL Injection
    An attacker uses standard SQL injection methods to inject data into the command line for execution. This could be done directly through misuse of directives such as MSSQL_xp_cmdshell or indirectly through injection of data into the database that would be interpreted as shell commands. Sometime later, an unscrupulous backend application (or could be part of the functionality of the same application) fetches the injected data stored in the database and uses this data as command line arguments without performing proper validation. The malicious data escapes that data plane by spawning new commands to be executed on the host.
  • 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.
  • 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.
  • OS Command Injection
    In this type of an attack, an adversary injects operating system commands into existing application functions. An application that uses untrusted input to build command strings is vulnerable. An adversary can leverage OS command injection in an application to elevate privileges, execute arbitrary commands and compromise the underlying operating system.
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 02-10-2019 - 20:03
Back to Top