CVE-2008-2942
Description
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
1.901%
chance of exploitation in the next 30 days
higher than 80% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
Timeline
- 2008-06-30Published by the CNA20:00 UTC
- 2022-05-01GitHub advisory published (GHSA-v2gw-x5jf-pgwv)5053 days after publication
Exploit and advisory records
GitHub advisory GHSA-v2gw-x5jf-pgwv, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI mercurial | before 1.0.2 | 1.0.2 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| mercurial mercurial | 1.0.1no fix listed | not listed |
References
- http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html
- http://security.gentoo.org/glsa/glsa-200807-09.xml
- http://www.selenic.com/hg/rev/87c704ac92d4
- http://secunia.com/advisories/31108
- http://secunia.com/advisories/31110
- http://secunia.com/advisories/31167
- http://wiki.rpath.com/Advisories:rPSA-2008-0211
- http://www.openwall.com/lists/oss-security/2008/06/30/1
- http://www.openwall.com/lists/oss-security/2008/07/01/1
- http://www.securityfocus.com/archive/1/493881/100/0/threaded
- http://www.securityfocus.com/bid/30072
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43551
- https://issues.rpath.com/browse/RPL-2633
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2008-2942'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2008-2942'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2008-2942'curl 'https://api.contrastcyber.com/cve_products/CVE-2008-2942'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).