Mercurial patch.py directory traversal
| mercurial-patch-directory-traversal (43551) |
Description:
Mercurial could allow a remote attacker to traverse directories on the system. An attacker could send a specially-crafted request to the patch.py script containing "dot dot" sequences (..) using a patch file to modify arbitrary files on the system.
Platforms Affected:
- Gentoo, Linux
- Mercurial, Mercurial 1.0.1
Remedy:
Apply the patch for this vulnerability (87c704ac92d4), available from the Mercurial Web site. See References.
Consequences:
Obtain Information
References:
- Mercurial Web site, Mercurial at http://www.selenic.com/mercurial/wiki/.
- Mercurial Web site, changeset 6758:87c704ac92d4 at http://www.selenic.com/hg/rev/87c704ac92d4.
- oss-security Mailing List, Mon, 30 Jun 2008 09:47:19 +0200, CVE id request mercurial:Insufficient input validation at http://www.openwall.com/lists/oss-security/2008/06/30/1.
- BID-30072: Mercurial 'patch.py' Directory Traversal Vulnerability
- CVE-2008-2942: Directory traversal vulnerability in patch.py in Mercurial 1.0.1 allows user-assisted attackers to modify arbitrary files via .. (dot dot) sequences in a patch file.
- GLSA-200807-09: Mercurial: Directory traversal
- SA31108: Mercurial "applydiff()" Directory Traversal Security Issue
- SUSE-SR:2008:015: SUSE Security Summary Report
Reported:
Jun 30, 2008
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
For corrections or additions please email xforce@iss.net
