Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.3
CVE-2017-1000116: Mercurial can be tricked into executing malicious commands via SSH
CVE-2017-1000116 · published 9 years ago
Summary
Mercurial versions before 4.3 allow attackers to inject malicious commands if they can trick the software into using a compromised SSH connection. This could allow the attacker to take control of the system. Update to Mercurial version 4.3 or later to fix this issue.
What to do
- Update olivia mackall and many others mercurial to version 4.3.
- Update mercurial mercurial to version 4.3 or later.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | mercurial | mercurial |
< 4.3 cpe:2.3:a:mercurial:mercurial:*:*:*:*:*:*:*:* |
| – | debian | debian_linux |
8.0 9.0 cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_desktop |
7.0 cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_server |
7.0 cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_server_aus |
7.4 7.6 cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_server_eus |
7.4 7.5 7.6 cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_server_tus |
7.4 7.6 cpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* |
| – | redhat | enterprise_linux_workstation |
7.0 cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* |
| pip | olivia mackall and many others | mercurial |
< 4.3 Fix: upgrade to 4.3
|
Original advisory text
Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.
Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-1000116
- https://access.redhat.com/errata/RHSA-2017:2489
- https://security.gentoo.org/glsa/201709-18
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.2F_4.3.1_.282017-08-1...
- http://www.debian.org/security/2017/dsa-3963
- https://web.archive.org/web/20200227155758/http://www.securityfocus.com/bid/1002...
- https://wiki.mercurial-scm.org/WhatsNew/Archive
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-8...
- https://github.com/advisories/GHSA-3qmg-c9vc-r47j
- http://www.securityfocus.com/bid/100290 Third Party Advisory VDB Entry
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically (estimated)
- Gives an attacker full control (estimated)
Type
CWE-78OS Command Injection
Timeline
Published5 Oct 2017
Updated22 Oct 2026
First seen6 Mar 2026
Track software like this
Free during beta