GLSA-200807-09 : Mercurial: Directory traversal

medium Nessus Plugin ID 33509

Synopsis

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

Description

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/patch.py 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.

Solution

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

See Also

https://security.gentoo.org/glsa/200807-09

Plugin Details

Severity: Medium

ID: 33509

File Name: gentoo_GLSA-200807-09.nasl

Version: 1.15

Type: local

Published: 7/16/2008

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.5

CVSS v2

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: 7/15/2008

Reference Information

CVE: CVE-2008-2942

CWE: 22

GLSA: 200807-09