{"id":"CVE-2017-17458","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.","aliases":["GHSA-6v56-cpg6-3rpx","PYSEC-2017-90"],"modified":"2026-04-16T06:15:53.163491736Z","published":"2017-12-07T18:29:00.203Z","related":["SUSE-SU-2018:0127-1","SUSE-SU-2018:0129-1","openSUSE-SU-2024:10586-1"],"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"}],"affected":[{"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-17458.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"fixed":"4.4.1"}]},{"events":[{"introduced":"0"},{"last_affected":"7.0"}]},{"events":[{"introduced":"0"},{"last_affected":"8.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}