CVE-2008-2942
MEDIUM 6.8CVSS 2.0Mercurial Directory traversal vulnerability
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.
- Published
- 30 Jun 2008
- Last modified
- 6 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-v2gw-x5jf-pgwvPYSEC-2026-666
- Sources
- NVDJSONOSV GHSA-v2gw-x5jf-pgwvJSONOSV PYSEC-2026-666JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mercurial | mercurialcpe:2.3:a:mercurial:mercurial:1.0.1:*:*:*:*:*:*:* |
= 1.0.1 | |
| OSV | PyPI | mercurial | < 1.0.2 | 1.0.2 |
References
- http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html · WEB
- http://secunia.com/advisories/31108 · WEB
- http://secunia.com/advisories/31110 · WEB
- http://secunia.com/advisories/31167 · WEB
- http://security.gentoo.org/glsa/glsa-200807-09.xml · WEB
- http://wiki.rpath.com/Advisories:rPSA-2008-0211 · WEB
- http://www.openwall.com/lists/oss-security/2008/06/30/1 · WEB
- http://www.openwall.com/lists/oss-security/2008/07/01/1 · WEB
- http://www.securityfocus.com/archive/1/493881/100/0/threaded · WEB
- http://www.securityfocus.com/bid/30072 · WEB
- http://www.selenic.com/hg/rev/87c704ac92d4 · Exploit, WEB
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43551 · WEB
- https://issues.rpath.com/browse/RPL-2633 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2008-2942 · ADVISORY
- https://github.com/dscho/hg · PACKAGE
- https://pypi.org/project/mercurial · PACKAGE
- https://github.com/advisories/GHSA-v2gw-x5jf-pgwv · ADVISORY
History
- 25 Nov 2026 20:14 UTC · NVD: first stored (published 30 Jun 2008)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 May 2022)