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

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

Affected products (1)

More vulnerabilities in Mercurial

All CVEs affecting Mercurial →

Other CWE-22 (Path Traversal) vulnerabilities

Browse all CWE-22 (Path Traversal) vulnerabilities →