CVE-2008-2942
Mercurial 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.
Exploit likelihood
What each source reports
NVD Score used
6.8
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.
- Record
CVE-2008-2942- CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2008-2942- Updated
- 2026-11-02
EUVDEUVD-2022-5263 No score
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.
- Record
EUVD-2022-5263- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-v2gw-x5jf-pgwv No score
Mercurial Directory traversal vulnerability
Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.
- Record
GHSA-v2gw-x5jf-pgwv- Weakness
- CWE-22
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2008-2942- Updated
- 2026-11-02
OSVDEBIAN-CVE-2008-2942 No score
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.
- Record
DEBIAN-CVE-2008-2942- Updated
- 2026-11-02
OSVGHSA-v2gw-x5jf-pgwv No score
Mercurial Directory traversal vulnerability
Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.
- Record
GHSA-v2gw-x5jf-pgwv- Weakness
- CWE-22
- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10586-1 No score
mercurial-5.9.1-2.1 on GA media
These are all security issues fixed in the mercurial-5.9.1-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10586-1- Updated
- 2026-11-02
OSVPYSEC-2026-666 No score
Mercurial Directory traversal vulnerability
Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.
- Record
PYSEC-2026-666- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mercurialPyPI |
before 1.0.2 | 1.0.2 |
mercurialDebian:12 |
before 1.0.1-2 | 1.0.1-2 |
mercurialDebian:13 |
before 1.0.1-2 | 1.0.1-2 |
mercurialDebian:14 |
before 1.0.1-2 | 1.0.1-2 |
mercurialPyPI |
before 1.0.2, plus listed versions 0.8.10.90.9.10.9.20.9.3 Show 4 moreShow less0.9.40.9.51.01.0.1 |
1.0.2 |
mercurialopenSUSE:Tumbleweed From an advisory covering 9 CVEs |
before 5.9.1-2.1 | 5.9.1-2.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2008-2942 is a medium vulnerability (CVSS 6.8) in Mercurial, published June 30, 2008. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.90%, the 79th percentile. Fixed in mercurial 1.0.2.
References
selenic.com/hg/rev/87c704ac92d4
exchange.xforce.ibmcloud.com/vulnerabilities/43551
securityfocus.com/bid/30072
issues.rpath.com/browse/RPL-2633
openwall.com/lists/oss-security/2008/06/30/1
lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html
Show 21 moreShow less
wiki.rpath.com/Advisories:rPSA-2008-0211
securityfocus.com/archive/1/493881/100/0/threaded
security.gentoo.org/glsa/glsa-200807-09.xml
openwall.com/lists/oss-security/2008/07/01/1
secunia.com/advisories/31110
secunia.com/advisories/31167
secunia.com/advisories/31108
nvd.nist.gov/vuln/detail/CVE-2008-2942
github.com/advisories/GHSA-v2gw-x5jf-pgwv
security-tracker.debian.org/tracker/CVE-2008-2942
github.com/dscho/hg
pypi.org/project/mercurial
suse.com/security/cve/CVE-2008-2942
suse.com/security/cve/CVE-2017-1000115
suse.com/security/cve/CVE-2017-1000116
suse.com/security/cve/CVE-2017-17458
suse.com/security/cve/CVE-2018-1000132
suse.com/security/cve/CVE-2018-13346
suse.com/security/cve/CVE-2018-13348
suse.com/security/cve/CVE-2018-17983
suse.com/security/cve/CVE-2019-3902