Debian DSA-3963-1 : mercurial - security update

Critical Nessus Plugin ID 102930


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


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.


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

Plugin Details

Severity: Critical

ID: 102930

File Name: debian_DSA-3963.nasl

Version: 3.6

Type: local

Agent: unix

Published: 2017/09/05

Updated: 2019/05/13

Dependencies: 12634

Risk Information

Risk Factor: Critical

CVSS v2.0

Base Score: 10

Temporal Score: 8.3

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

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

CVSS v3.0

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: 2017/09/04

Vulnerability Publication Date: 2017/06/06

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