Executive Summary



This Alert is flagged as TOP 25 Common Weakness Enumeration from CWE/SANS. For more information, you can read this.
Summary
Title Mercurial: Directory traversal
Informations
Name GLSA-200807-09 First vendor Publication 2008-07-15
Vendor Gentoo Last vendor Modification 2008-07-15
Severity (Vendor) Normal Revision N/A

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:N/C:P/I:P/A:P)
Cvss Base Score 6.8 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Medium
Cvss Expoit Score 8.6 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Synopsis

A directory traversal vulnerability in Mercurial allows for the renaming of arbitrary files.

Background

Mercurial is a distributed Source Control Management system.

Description

Jakub Wilk discovered a directory traversal vulnerabilty 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.

Resolution

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

References

[ 1 ] CVE-2008-2942 : http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-2942

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website:

http://security.gentoo.org/glsa/glsa-200807-09.xml

Original Source

Url : http://security.gentoo.org/glsa/glsa-200807-09.xml

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE/SANS Top 25)

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 1

OpenVAS Exploits

Date Description
2008-09-24 Name : Gentoo Security Advisory GLSA 200807-09 (mercurial)
File : nvt/glsa_200807_09.nasl

Open Source Vulnerability Database (OSVDB)

Id Description
46986 Mercurial patch.py Patch File Traversal Arbitrary File Access

Nessus® Vulnerability Scanner

Date Description
2009-07-21 Name : The remote openSUSE host is missing a security update.
File : suse_11_0_mercurial-080704.nasl - Type : ACT_GATHER_INFO
2008-07-16 Name : The remote Gentoo host is missing one or more security-related patches.
File : gentoo_GLSA-200807-09.nasl - Type : ACT_GATHER_INFO

Alert History

If you want to see full details history, please login or register.
0
Date Informations
2014-02-17 11:35:58
  • Multiple Updates