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.
*CVSS:
| Base Score: | 6.4 |
| Access Vector: | Network |
| Access Complexity: | Low |
| Authentication: | None |
| Confidentiality Impact: | Partial |
| Integrity Impact: | Partial |
| Availability Impact: | None |
| Temporal Score: | 4.7 |
| Exploitability: | Unproven |
| Remediation Level: | Official-Fix |
| Report Confidence: | Confirmed |
Consequences:
Obtain Information
Remedy:
Apply the patch for this vulnerability (87c704ac92d4), available from the Mercurial Web site. See References.
References:
- Mercurial Web site: Mercurial .
- Mercurial Web site: changeset 6758:87c704ac92d4.
- oss-security Mailing List, Mon, 30 Jun 2008 09:47:19 +0200: CVE id request mercurial:Insufficient input validation.
- 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
Platforms Affected:
- Gentoo Linux
- Mercurial Mercurial 1.0.1
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
* According to the Forum of Incident Response and Security Teams (FIRST), the Common Vulnerability Scoring System (CVSS) is an "industry open standard designed to convey vulnerability severity and help to determine urgency and priority of response." IBM PROVIDES THE CVSS SCORES "AS IS" WITHOUT WARRANTY OF ANY KIND, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS ARE RESPONSIBLE FOR ASSESSING THE IMPACT OF ANY ACTUAL OR POTENTIAL SECURITY VULNERABILITY.
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 IBM be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
