Debian DLA-1224-1 : mercurial security update

Critical Nessus Plugin ID 105488

Synopsis

The remote Debian host is missing a security update.

Description

A vulnerability was found in the Mercurial version control system which could lead to remote arbitrary code execution.

CVE-2017-17458

A specially malformed Mercurial repository could cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the parent repository.
Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.

For Debian 7 'Wheezy', these problems have been fixed in version 2.2.2-4+deb7u6.

We recommend that you upgrade your mercurial packages.

NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Upgrade the affected mercurial, and mercurial-common packages.

See Also

https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html

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

Plugin Details

Severity: Critical

ID: 105488

File Name: debian_DLA-1224.nasl

Version: $Revision: 3.2 $

Type: local

Agent: unix

Published: 2017/12/29

Modified: 2018/01/29

Dependencies: 12634

Risk Information

Risk Factor: Critical

CVSSv2

Base Score: 10

Temporal Score: 7.4

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

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

CVSSv3

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: p-cpe:/a:debian:debian_linux:mercurial, p-cpe:/a:debian:debian_linux:mercurial-common, cpe:/o:debian:debian_linux:7.0

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

Exploit Available: false

Exploit Ease: No known exploits are available

Patch Publication Date: 2017/12/28

Reference Information

CVE: CVE-2017-17458

OSVDB: 170526