—
PYSEC-2026-666
Mercurial Directory traversal vulnerability
Quick fix
PYSEC-2026-666 — mercurial: upgrade to the fixed version with the command below.
pip install --upgrade 'mercurial>=1.0.2'Details
Directory traversal vulnerability in patch.py in Mercurial before 1.0.2 allows user-assisted attackers to modify arbitrary files via ".." (dot dot) sequences in a patch file.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2008-2942[ADVISORY]
- https://exchange.xforce.ibmcloud.com/vulnerabilities/43551[WEB]
- https://github.com/dscho/hg[PACKAGE]
- https://issues.rpath.com/browse/RPL-2633[WEB]
- http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html[WEB]
- http://secunia.com/advisories/31108[WEB]
- http://secunia.com/advisories/31110[WEB]
- http://secunia.com/advisories/31167[WEB]
- http://security.gentoo.org/glsa/glsa-200807-09.xml[WEB]
- http://wiki.rpath.com/Advisories:rPSA-2008-0211[WEB]
- http://www.openwall.com/lists/oss-security/2008/06/30/1[WEB]
- http://www.openwall.com/lists/oss-security/2008/07/01/1[WEB]
- http://www.securityfocus.com/archive/1/493881/100/0/threaded[WEB]
- http://www.securityfocus.com/bid/30072[WEB]
- http://www.selenic.com/hg/rev/87c704ac92d4[WEB]
- https://pypi.org/project/mercurial[PACKAGE]
- https://github.com/advisories/GHSA-v2gw-x5jf-pgwv[ADVISORY]