Mercurial: Directory traversal A directory traversal vulnerability in Mercurial allows for the renaming of arbitrary files. mercurial 2008-07-15 2008-07-15 230193 remote 1.0.1-r2 1.0.1-r2

Mercurial is a distributed Source Control Management system.

Jakub Wilk discovered a directory traversal vulnerabilty in the applydiff() function in the mercurial/patch.py file.

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.

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"
CVE-2008-2942 keytoaster keytoaster p-y