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 productsnot 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
-
selenic.com
/hg/rev/87c704ac92d4
web, exploit
-
lists.opensuse.org
/opensuse-security-announce/2008-07/msg00006.html
vendor-advisory, web
-
security.gentoo.org
/glsa/glsa-200807-09.xml
vendor-advisory, web
-
exchange.xforce.ibmcloud.com
/vulnerabilities/43551
vdb-entry, web
-
securityfocus.com
/bid/30072
vdb-entry, web
-
issues.rpath.com
/browse/RPL-2633
web
-
openwall.com
/lists/oss-security/2008/06/30/1
mailing-list, web
-
wiki.rpath.com
/Advisories:rPSA-2008-0211
web
-
securityfocus.com
/archive/1/493881/100/0/threaded
mailing-list, web
-
openwall.com
/lists/oss-security/2008/07/01/1
mailing-list, web
-
secunia.com
/advisories/31110
third-party-advisory, web
-
secunia.com
/advisories/31167
third-party-advisory, web
-
secunia.com
/advisories/31108
third-party-advisory, web
-
nvd.nist.gov
/vuln/detail/CVE-2008-2942
advisory
-
github.com
/dscho/hg
package
-
pypi.org
/project/mercurial
package
-
github.com
/advisories/GHSA-v2gw-x5jf-pgwv
advisory
Sources
- CVE List CVE-2008-2942
- GitHub Advisory GHSA-v2gw-x5jf-pgwv
- NVD CVE-2008-2942
- OSV PYSEC-2026-666
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.