CVE-2008-2942
CVE-2008-2942 is a medium-severity vulnerability in Mercurial with a CVSS 2.0 base score of 6.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-22.
Key facts
- Severity: Medium (CVSS 2.0 base score 6.8)
- EPSS exploit prediction: 2% (77th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-22
- Affected product: Mercurial
- Published:
- Last modified:
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.
Frequently asked questions
- What is 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.
- How severe is CVE-2008-2942?
- CVE-2008-2942 has a CVSS 2.0 base score of 6.8, rated medium severity.
- Is CVE-2008-2942 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (77th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2008-2942?
- CVE-2008-2942 affects Mercurial. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2008-2942?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2008-2942 published?
- CVE-2008-2942 was published on 2008-06-30 and last updated on 2026-06-16.
References
- http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html
- http://secunia.com/advisories/31108
- http://secunia.com/advisories/31110
- http://secunia.com/advisories/31167
- http://security.gentoo.org/glsa/glsa-200807-09.xml
- 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
- http://www.selenic.com/hg/rev/87c704ac92d4
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43551
- https://issues.rpath.com/browse/RPL-2633
Affected products (1)
- cpe:2.3:a:mercurial:mercurial:1.0.1:*:*:*:*:*:*:*
More vulnerabilities in Mercurial
- CVE-2014-9390 — Critical (CVSS 9.8): Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 on Windows and…
- CVE-2018-13347 — Critical (CVSS 9.8): mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.
- CVE-2017-17458 — Critical (CVSS 9.8): In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run…
- CVE-2017-1000116 — Critical (CVSS 9.8): Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.
- CVE-2018-17983 — Critical (CVSS 9.1): cext/manifest.c in Mercurial before 4.7.2 has an out-of-bounds read during parsing of a malformed manifest entry.
- CVE-2018-1000132 — Critical (CVSS 9.1): Mercurial version 4.5 and earlier contains a Incorrect Access Control (CWE-285) vulnerability in Protocol server that…
All CVEs affecting Mercurial →
Other CWE-22 (Path Traversal) vulnerabilities
- CVE-2026-48282 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Limitation of a Pathname to a Restricted…
- CVE-2026-54917 — Critical (CVSS 10.0): SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables. Prior to 4.30, the…
- CVE-2026-11429 — Critical (CVSS 10.0): Two endpoints in the Vault Service ScriptsController, shared by Altium Enterprise Server and Altium 365, accept file…
- CVE-2026-34909 — Critical (CVSS 10.0): A malicious actor with access to the network could exploit a Path Traversal vulnerability found in UniFi OS devices to…
- CVE-2026-7411 — Critical (CVSS 10.0): In Eclipse BaSyx Java Server SDK versions prior to 2.0.0-milestone-10, inadequate path normalization in the Submodel…
- CVE-2026-36767 — Critical (CVSS 10.0): A path traversal vulnerability in the /content/images/add endpoint of shopizer v3.2.5 allows attackers write arbitrary…