# CVE-2008-2942

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2008-06-30 · Modified: 2024-08-07
- Aliases: GHSA-v2gw-x5jf-pgwv, PYSEC-2026-666, DEBIAN-CVE-2008-2942
- Record: https://cvemate.com/vulnerability/CVE-2008-2942 · JSON: https://cvemate.com/vulnerability/CVE-2008-2942/json

## Description

```text
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.
```

## Signals

- CVSS: 6.8 medium (v2.0, NVD) AV:N/AC:M/Au:N/C:P/I:P/A:P
- EPSS: 1.885%, percentile 80.216%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian mercurial (Debian): \< 1.0.1-2
- mercurial mercurial: 1.0.1
- PyPI mercurial (PyPI): \< 1.0.2

## References

- <http://www.selenic.com/hg/rev/87c704ac92d4>
- <https://exchange.xforce.ibmcloud.com/vulnerabilities/43551>
- <http://www.securityfocus.com/bid/30072>
- <https://issues.rpath.com/browse/RPL-2633>
- <http://www.openwall.com/lists/oss-security/2008/06/30/1>
- <http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html>
- <http://wiki.rpath.com/Advisories:rPSA-2008-0211>
- <http://www.securityfocus.com/archive/1/493881/100/0/threaded>
- <http://security.gentoo.org/glsa/glsa-200807-09.xml>
- <http://www.openwall.com/lists/oss-security/2008/07/01/1>
- <http://secunia.com/advisories/31110>
- <http://secunia.com/advisories/31167>
- <http://secunia.com/advisories/31108>
- <https://nvd.nist.gov/vuln/detail/CVE-2008-2942>
- <https://github.com/dscho/hg>
- <https://pypi.org/project/mercurial>
- <https://github.com/advisories/GHSA-v2gw-x5jf-pgwv>
- <https://security-tracker.debian.org/tracker/CVE-2008-2942>

---

Data as of 2026-12-05T06:40:14.207Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
