{"id":"PYSEC-2026-666","summary":"Mercurial Directory traversal vulnerability","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.","aliases":["CVE-2008-2942","GHSA-v2gw-x5jf-pgwv"],"modified":"2026-07-06T08:00:10.339058372Z","published":"2026-07-02T14:13:21.096985Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2008-2942"},{"type":"WEB","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/43551"},{"type":"PACKAGE","url":"https://github.com/dscho/hg"},{"type":"WEB","url":"https://issues.rpath.com/browse/RPL-2633"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2008-07/msg00006.html"},{"type":"WEB","url":"http://secunia.com/advisories/31108"},{"type":"WEB","url":"http://secunia.com/advisories/31110"},{"type":"WEB","url":"http://secunia.com/advisories/31167"},{"type":"WEB","url":"http://security.gentoo.org/glsa/glsa-200807-09.xml"},{"type":"WEB","url":"http://wiki.rpath.com/Advisories:rPSA-2008-0211"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2008/06/30/1"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2008/07/01/1"},{"type":"WEB","url":"http://www.securityfocus.com/archive/1/493881/100/0/threaded"},{"type":"WEB","url":"http://www.securityfocus.com/bid/30072"},{"type":"WEB","url":"http://www.selenic.com/hg/rev/87c704ac92d4"},{"type":"PACKAGE","url":"https://pypi.org/project/mercurial"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v2gw-x5jf-pgwv"}],"affected":[{"package":{"name":"mercurial","ecosystem":"PyPI","purl":"pkg:pypi/mercurial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.2"}]}],"versions":["0.8.1","0.9","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","1.0","1.0.1"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/mercurial/PYSEC-2026-666.yaml"}}],"schema_version":"1.7.5"}