CVE-2008-2942

Exp

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: 2008-06-30 Last update: 2026-04-23 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2008-2942 is rated High Exploit Risk (68.4/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.79%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2008-2942

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2008-2942

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-07 0.58% 0.79% +0.21%
2 2025-03-30 1.11% 0.58% -0.53%
3 2025-03-29 1.11%

Full EPSS history (8 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2008-2942

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.8 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.6 6.4 [email protected]

Weakness enumeration for CVE-2008-2942

GitHub Security Advisory for CVE-2008-2942

GHSA-v2gw-x5jf-pgwv · Severity: medium · Ecosystem: pip — Mercurial Directory traversal vulnerability

OS Trackers for CVE-2008-2942

vendor priority summary link
debian low CVE-2008-2942 low priority: Debian including 1 source packages (mercurial), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2008-2942
gentoo normal CVE-2008-2942: 1 GLSA(s) (200807-09), 1 atom(s) (dev-util/mercurial); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2008-2942
redhat low https://access.redhat.com/security/cve/CVE-2008-2942
suse medium CVE-2008-2942 severity moderate: SUSE including 7 source package names (mercurial, mercurial-2.3.2-0.9.2, …), 20 product×package rows across 17 product lines (SUSE CaaS Platform 4.0, SUSE Enterprise Storage 6, … (17 product lines)): Known Not Affected 14, Fixed 6. https://www.suse.com/security/cve/CVE-2008-2942/
ubuntu low CVE-2008-2942 low priority: Ubuntu including 1 source packages (mercurial), 12 status rows across 12 suites (dapper, feisty, gutsy, hardy, intrepid, jaunty, karmic, lucid, maverick, natty, oneiric, upstream): not-affected 7, ignored 4, released 1. https://ubuntu.com/security/CVE-2008-2942

Affected software / configurations for CVE-2008-2942

Vendor Product Version Raw CPE
mercurial mercurial 1.0.1 cpe:2.3:a:mercurial:mercurial:1.0.1:*:*:*:*:*:*:*

References for CVE-2008-2942

cvelogic Threat Intelligence