Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mercurial
  4. ›
  5. CVE-2008-2942

CVE-2008-2942: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

May 1, 2022 (updated September 22, 2023)

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.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2008-2942 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.2

Fixed versions

  • 1.0.2

Solution

Upgrade to version 1.0.2 or above.

Impact 6.8 MEDIUM

AV:N/AC:M/Au:N/C:P/I:P/A:P

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/mercurial/CVE-2008-2942.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:03 +0000.