Skip to content
Fencer Vulns
medium 6.8

CVE-2008-2942 json

Mercurial Directory traversal vulnerability

published 2008-06-30 18 y ago modified 2026-07-06 4 mo ago also GHSA-v2gw-x5jf-pgwv , PYSEC-2026-666 , EUVD-2022-5263

cvss
6.8
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.9%
EPSS 1.9% chance of exploitation in 30 days, percentile 79%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi mercurial 1.0.2
  • mercurial Debian 14, Debian 13, Debian 12 1.0.1-2

debian advisories DEBIAN-CVE-2008-2942

  • mercurial openSUSE Tumbleweed 5.9.1-2.1

opensuse advisories openSUSE-SU-2024:10586-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2008-2942 updated

mercurial: insufficient input validationn allowing file renames out of repository

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.90% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • selenic.com http://www.selenic.com/hg/rev/87c704ac92d4 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 2.0 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected packages

ecosystem package affected fixed in
pypi mercurial
<1.0.2
1.0.2

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.