RHEL 7 : mercurial (RHSA-2017:2489)

critical Nessus Plugin ID 102575

Synopsis

The remote Red Hat host is missing one or more security updates for mercurial.

Description

The remote Redhat Enterprise Linux 7 host has packages installed that are affected by multiple vulnerabilities as referenced in the RHSA-2017:2489 advisory.

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.

Tenable has extracted the preceding description block directly from the Red Hat Enterprise Linux security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Update the RHEL mercurial package based on the guidance in RHSA-2017:2489.

See Also

http://www.nessus.org/u?3a457ec9

https://access.redhat.com/errata/RHSA-2017:2489

https://access.redhat.com/security/updates/classification/#important

https://bugzilla.redhat.com/show_bug.cgi?id=1479915

https://bugzilla.redhat.com/show_bug.cgi?id=1480330

Plugin Details

Severity: Critical

ID: 102575

File Name: redhat-RHSA-2017-2489.nasl

Version: 3.15

Type: local

Agent: unix

Published: 8/18/2017

Updated: 11/5/2024

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

Vendor

Vendor Severity: Important

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

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

CVSS Score Source: CVE-2017-1000116

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:redhat:enterprise_linux:7, p-cpe:/a:redhat:enterprise_linux:emacs-mercurial, p-cpe:/a:redhat:enterprise_linux:emacs-mercurial-el, p-cpe:/a:redhat:enterprise_linux:mercurial-hgk, p-cpe:/a:redhat:enterprise_linux:mercurial

Required KB Items: Host/local_checks_enabled, Host/RedHat/release, Host/RedHat/rpm-list, Host/cpu

Exploit Ease: No known exploits are available

Patch Publication Date: 8/17/2017

Vulnerability Publication Date: 10/5/2017

Reference Information

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

CWE: 20, 22

RHSA: 2017:2489