Debian DSA-3963-1 : mercurial - security update

critical Nessus Plugin ID 102930

Synopsis

The remote Debian host is missing a security-related update.

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.

Solution

Upgrade the mercurial packages.

For the oldstable distribution (jessie), these problems have been fixed in version 3.1.2-2+deb8u4.

For the stable distribution (stretch), these problems have been fixed in version 4.0-1+deb9u1.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861243

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871709

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871710

https://security-tracker.debian.org/tracker/CVE-2017-9462

https://security-tracker.debian.org/tracker/CVE-2017-1000115

https://security-tracker.debian.org/tracker/CVE-2017-1000116

https://packages.debian.org/source/jessie/mercurial

https://packages.debian.org/source/stretch/mercurial

https://www.debian.org/security/2017/dsa-3963

Plugin Details

Severity: Critical

ID: 102930

File Name: debian_DSA-3963.nasl

Version: 3.7

Type: local

Agent: unix

Published: 9/5/2017

Updated: 1/4/2021

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

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 8.3

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

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.1

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:F/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:mercurial, cpe:/o:debian:debian_linux:8.0, cpe:/o:debian:debian_linux:9.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/4/2017

Vulnerability Publication Date: 6/6/2017

Exploitable With

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

Reference Information

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

DSA: 3963