EulerOS 2.0 SP2 : mercurial (EulerOS-SA-2017-1218)

High Nessus Plugin ID 103076


The remote EulerOS host is missing multiple security updates.


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.

- 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.


Update the affected mercurial packages.

See Also

Plugin Details

Severity: High

ID: 103076

File Name: EulerOS_SA-2017-1218.nasl

Version: $Revision: 3.3 $

Type: local

Published: 2017/09/11

Modified: 2018/01/30

Dependencies: 12634

Risk Information

Risk Factor: High


Base Score: 7.5

Temporal Score: 6.2

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Temporal Vector: CVSS2#E:F/RL:OF/RC:ND


Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Vulnerability Information

CPE: p-cpe:/a:huawei:euleros:mercurial, cpe:/o:huawei:euleros:2.0

Required KB Items: Host/local_checks_enabled, Host/EulerOS/release, Host/EulerOS/rpm-list, Host/EulerOS/sp

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2017/08/28

Reference Information

CVE: CVE-2017-1000115, CVE-2017-1000116

OSVDB: 163120, 163196