Gentoo Logo

Mercurial: Directory traversal

Content:

1.  Gentoo Linux Security Advisory

Version Information

Advisory Reference GLSA 200807-09 / mercurial
Release Date July 15, 2008
Latest Revision July 15, 2008: 01
Impact normal
Exploitable remote
Package Vulnerable versions Unaffected versions Architecture(s)
dev-util/mercurial < 1.0.1-r2 >= 1.0.1-r2 All supported architectures

Related bugreports: #230193

Synopsis

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

2.  Impact Information

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.

3.  Resolution Information

Workaround

There is no known workaround at this time.

Resolution

All Mercurial users should upgrade to the latest version:

Code Listing 3.1: Resolution

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-util/mercurial-1.0.1-r2"

4.  References



Print

Page updated July 15, 2008

Summary: This is a Gentoo Linux Security Advisory

Security Team
Contact Address

Donate to support our development efforts.

Copyright 2001-2014 Gentoo Foundation, Inc. Questions, Comments? Contact us.