{"id":"CVE-2017-1000116","published":"2017-10-04T01:00:00Z","modified":"2024-08-05T21:53:06Z","title":"Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks","vendor":null,"product":null,"tier":"tail","description":{"text":"Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06543,"percentile":0.93961,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.2F_4.3.1_.282017-08-10.29","tags":["x_refsource_CONFIRM"]},{"url":"http://www.securityfocus.com/bid/100290","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.debian.org/security/2017/dsa-3963","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://access.redhat.com/errata/RHSA-2017:2489","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://security.gentoo.org/glsa/201709-18","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":18.79}]},"affected":[{"ecosystem":"PyPI","package":"mercurial","vulnerableRanges":["<4.3"],"patched":["4.3"],"from":["GHSA-3qmg-c9vc-r47j","PYSEC-2017-89"],"provenance":"source"}],"summary":{"text":"The flaw is in Mercurial, the distributed version control system, where hostnames passed to the ssh command were not adequately sanitized before the program was invoked. An attacker who can supply a crafted hostname to Mercurial's ssh handling could inject shell commands, with the specific network, authentication, user interaction, and configuration conditions for exploitation not stated in the available record.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:02:31Z"},"euvd":{"id":"EUVD-2017-0071","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2017-12976","to":"CVE-2017-1000116","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…ackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, as demonstrated by an ssh://-eProxyCommand= URL, a related issue to CVE-2017-9800, CVE-2017-12836, CVE-2017-1000116, and CVE-2017-1000117.","from":"CVE.org","in":"CVE-2017-12976"}]}],"children":[{"from":"CVE-2017-1000116","to":"CVE-2017-14176","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…ows remote attackers to execute arbitrary commands via a bzr+ssh URL with an initial dash character in the hostname, a related issue to CVE-2017-9800, CVE-2017-12836, CVE-2017-12976, CVE-2017-16228, CVE-2017-1000116, and CVE-2017-1000117.","from":"CVE.org","in":"CVE-2017-14176"}]},{"from":"CVE-2017-1000116","to":"CVE-2017-16228","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…rocess is used, allows remote attackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, a related issue to CVE-2017-9800, CVE-2017-12836, CVE-2017-12976, CVE-2017-1000116, and CVE-2017-1000117.","from":"CVE.org","in":"CVE-2017-16228"}]},{"from":"CVE-2017-1000116","to":"CVE-2017-17459","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…tackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, a related issue to CVE-2017-9800, CVE-2017-12836, CVE-2017-12976, CVE-2017-14176, CVE-2017-16228, CVE-2017-1000116, and CVE-2017-1000117.","from":"CVE.org","in":"CVE-2017-17459"}]}],"packageHistory":[{"cve":"CVE-2016-3630","published":"2016-04-13","fixed":"3.7.3","kev":false},{"cve":"CVE-2016-3105","published":"2016-05-09","fixed":"3.8","kev":false},{"cve":"CVE-2017-9462","published":"2017-06-06","fixed":"4.1.3","kev":false,"link":{"from":"CVE-2017-9462","to":"CVE-2017-1000116","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mercurial","fromFixed":"4.1.3","toFixed":"4.3","daysApart":120}]}},{"cve":"CVE-2017-1000116","published":"2017-10-04","fixed":"4.3","kev":false},{"cve":"CVE-2017-1000115","published":"2017-10-04","fixed":"4.3.1","kev":false},{"cve":"CVE-2017-17458","published":"2017-12-07","fixed":"4.4.1","kev":false},{"cve":"CVE-2018-1000132","published":"2018-03-14","fixed":"4.5.1","kev":false}],"package":"PyPI:mercurial"}}