GLSA-200807-09 : Mercurial: Directory traversal

Medium Nessus Plugin ID 33509


The remote Gentoo host is missing one or more security-related patches.


The remote host is affected by the vulnerability described in GLSA-200807-09 (Mercurial: Directory traversal)

Jakub Wilk discovered a directory traversal vulnerability in the applydiff() function in the mercurial/ file.
Impact :

A remote attacker could entice a user to import a specially crafted patch, possibly resulting in the renaming of arbitrary files, even outside the repository.
Workaround :

There is no known workaround at this time.


All Mercurial users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-util/mercurial-1.0.1-r2'

See Also

Plugin Details

Severity: Medium

ID: 33509

File Name: gentoo_GLSA-200807-09.nasl

Version: $Revision: 1.12 $

Type: local

Published: 2008/07/16

Modified: 2015/08/24

Dependencies: 12634

Risk Information

Risk Factor: Medium


Base Score: 6.8

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:mercurial, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 2008/07/15

Reference Information

CVE: CVE-2008-2942

OSVDB: 46986

GLSA: 200807-09

CWE: 22