CVE-2017-1000116
CRITICAL 9.8CVSS 3.0Mercurial is vulnerable to shell injection attack
Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.
- Published
- 5 Oct 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-3qmg-c9vc-r47jPYSEC-2017-89
- Sources
- NVDJSONOSV GHSA-3qmg-c9vc-r47jJSONOSV PYSEC-2017-89JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 10.0 | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mercurial | mercurialcpe:2.3:a:mercurial:mercurial:*:*:*:*:*:*:*:* |
< 4.3 | 4.3 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | redhat | enterprise_linux_desktopcpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_servercpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* |
= 7.4 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_server_euscpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:* |
= 7.4 | |
| NVD | redhat | enterprise_linux_server_euscpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:* |
= 7.5 | |
| NVD | redhat | enterprise_linux_server_euscpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:7.4:*:*:*:*:*:*:* |
= 7.4 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_workstationcpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| OSV | PyPI | mercurial | < 4.3 | 4.3 |
References
- http://www.debian.org/security/2017/dsa-3963 · Third Party Advisory, WEB, ADVISORY
- http://www.securityfocus.com/bid/100290 · Third Party Advisory, VDB Entry, WEB
- https://access.redhat.com/errata/RHSA-2017:2489 · Third Party Advisory, WEB, ADVISORY
- https://security.gentoo.org/glsa/201709-18 · Patch, Third Party Advisory, VDB Entry, WEB, ADVISORY
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.2F_4.3.1_.282017-08-10.29 · Release Notes, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-1000116 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-89.yaml · WEB
- https://web.archive.org/web/20200227155758/http://www.securityfocus.com/bid/100290 · WEB
- https://wiki.mercurial-scm.org/WhatsNew/Archive · WEB
- https://github.com/advisories/GHSA-3qmg-c9vc-r47j · ADVISORY
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 5 Oct 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 5 Oct 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 May 2022)