6.8med

CVE-2008-2942

Mercurial Directory traversal vulnerability

Also known as GHSA-v2gw-x5jf-pgwv, PYSEC-2026-666

Published 18 y ago · modified 4 mo ago · JSON

CVSS
6.8
v2.0 · NVD
CISA KEV
No
not known exploited
EPSS
1.9%
percentile 80%
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.

Exploit prediction (EPSS)

1.90% probability of exploitation in the next 30 days, higher than 80% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD2.06.8AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected packages

EcosystemPackageAffectedFixed in
pypimercurial
<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 · x_refsource_CONFIRM, x_transferred
  • exchange.xforce.ibmcloud.com /vulnerabilities/43551 · vdb-entry, x_refsource_XF, x_transferred
  • securityfocus.com /bid/30072 · vdb-entry, x_refsource_BID, x_transferred
  • issues.rpath.com /browse/RPL-2633 · x_refsource_CONFIRM, x_transferred
  • openwall.com /lists/oss-security/2008/06/30/1 · mailing-list, x_refsource_MLIST, x_transferred
  • lists.opensuse.org /opensuse-security-announce/2008-07/msg00006.html · vendor-advisory, x_refsource_SUSE, x_transferred
  • wiki.rpath.com /Advisories:rPSA-2008-0211 · x_refsource_CONFIRM, x_transferred
  • securityfocus.com /archive/1/493881/100/0/threaded · mailing-list, x_refsource_BUGTRAQ, x_transferred
  • security.gentoo.org /glsa/glsa-200807-09.xml · vendor-advisory, x_refsource_GENTOO, x_transferred
  • openwall.com /lists/oss-security/2008/07/01/1 · mailing-list, x_refsource_MLIST, x_transferred
  • secunia.com /advisories/31110 · third-party-advisory, x_refsource_SECUNIA, x_transferred
  • secunia.com /advisories/31167 · third-party-advisory, x_refsource_SECUNIA, x_transferred
  • secunia.com /advisories/31108 · third-party-advisory, x_refsource_SECUNIA, x_transferred
  • 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

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.