{"id":"CVE-2017-17458","aliases":["GHSA-6v56-cpg6-3rpx","PYSEC-2017-90"],"url":"https://o3.security/vulnerability/CVE-2017-17458","summary":"Mercurial vulnerable to arbitrary code injection","details":"In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.","published":"2017-12-07T18:29:00.203Z","modified":"2026-04-16T06:15:53.163491736Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"mercurial","fixedVersion":"4.4.1"}],"fix":null,"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/102926"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html"},{"type":"ADVISORY","url":"https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html"},{"type":"ADVISORY","url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29"},{"type":"ADVISORY","url":"https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html"},{"type":"REPORT","url":"https://bz.mercurial-scm.org/show_bug.cgi?id=5730"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-04-16T06:15:53.163491736Z"}}