Amazon Linux AMI : mercurial (ALAS-2017-856)

high Nessus Plugin ID 101273

Synopsis

The remote Amazon Linux AMI host is missing a security update.

Description

Python debugger accessible to authorized users :

A flaw was found in the way 'hg serve --stdio' command in Mercurial handled command-line options. A remote, authenticated attacker could use this flaw to execute arbitrary code on the Mercurial server by using specially crafted command-line options. (CVE-2017-9462)

Solution

Run 'yum update mercurial' to update your system.

See Also

https://alas.aws.amazon.com/ALAS-2017-856.html

Plugin Details

Severity: High

ID: 101273

File Name: ala_ALAS-2017-856.nasl

Version: 3.5

Type: local

Agent: unix

Published: 7/7/2017

Updated: 4/10/2019

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

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: High

Base Score: 9

Temporal Score: 7.4

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

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 8.2

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

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

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:mercurial-debuginfo, p-cpe:/a:amazon:linux:emacs-mercurial, p-cpe:/a:amazon:linux:mercurial-common, p-cpe:/a:amazon:linux:mercurial-python27, p-cpe:/a:amazon:linux:mercurial-python26, cpe:/o:amazon:linux, p-cpe:/a:amazon:linux:emacs-mercurial-el

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 7/6/2017

Exploitable With

Metasploit (Mercurial Custom hg-ssh Wrapper Remote Code Exec)

Reference Information

CVE: CVE-2017-9462

ALAS: 2017-856