{"id":"GHSA-v2gw-x5jf-pgwv","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","PYSEC-2026-666"],"modified":"2026-07-06T08:11:27.639378387Z","published":"2022-05-01T23:55:06Z","database_specific":{"cwe_ids":["CWE-22"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2023-09-22T22:26:38Z","nvd_published_at":"2008-06-30T20:41:00Z"},"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"}],"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/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-v2gw-x5jf-pgwv/GHSA-v2gw-x5jf-pgwv.json"}}],"schema_version":"1.9.0"}