Vulnerabilities / CVE-2017-1000116

critical

CVE-2017-1000116

mercurial: command injection on clients through malicious ssh URLs

Published Modified CWE 78
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat6.3CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Photon OS. Rated lower by Red Hat (high), Amazon (high), Oracle (high), Ubuntu (medium).

Description

Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 1.0mercurial4.3.3-1.ph1
Photon OS 2.0mercurial4.3.3-1.ph2
pip::GitHub Security Advisory pipmercurial4.3
alpine 3.3mercurial4.3.1-r0
alpine 3.4mercurial4.3.1-r0
alpine 3.5mercurial4.3.1-r0
alpine 3.6mercurial4.3.1-r0
amazon linux 1emacs-mercurial, emacs-mercurial-el, mercurial-common and 3 more4.2.3-1.29.amzn1
debian 11mercurial4.3.1-1
debian 12mercurial4.3.1-1
debian 13mercurial4.3.1-1
debian 14mercurial4.3.1-1
Show all 34 entries from 23 sources
SourcePackageFixed in
Photon OS 1.0mercurial4.3.3-1.ph1
Photon OS 2.0mercurial4.3.3-1.ph2
pip::GitHub Security Advisory pipmercurial4.3
alpine 3.3mercurial4.3.1-r0
alpine 3.4mercurial4.3.1-r0
alpine 3.5mercurial4.3.1-r0
alpine 3.6mercurial4.3.1-r0
amazon linux 1emacs-mercurial4.2.3-1.29.amzn1
amazon linux 1emacs-mercurial-el4.2.3-1.29.amzn1
amazon linux 1mercurial-common4.2.3-1.29.amzn1
amazon linux 1mercurial-debuginfo4.2.3-1.29.amzn1
amazon linux 1mercurial-python264.2.3-1.29.amzn1
amazon linux 1mercurial-python274.2.3-1.29.amzn1
debian 11mercurial4.3.1-1
debian 12mercurial4.3.1-1
debian 13mercurial4.3.1-1
debian 14mercurial4.3.1-1
debian 7mercurial2.2.2-4+deb7u5
debian 8mercurial3.1.2-2+deb8u4
debian 9mercurial4.0-1+deb9u1
echomercurial4.3.1-1
Oracle Linux 7emacs-mercurial2.6.2-8.el7_4
Oracle Linux 7emacs-mercurial-el2.6.2-8.el7_4
Oracle Linux 7mercurial2.6.2-8.el7_4
Oracle Linux 7mercurial-hgk2.6.2-8.el7_4
Red Hatemacs-mercurialno fix listed
Red Hatemacs-mercurial-elno fix listed
Red Hatmercurialno fix listed
Red Hatmercurial-hgkno fix listed
ubuntu 14.04mercurial2.8.2-1ubuntu1.4
ubuntu 14.04-ESMmercurial2.8.2-1ubuntu1.4
ubuntu 16.04mercurial3.7.3-1ubuntu1.1
ubuntu 16.04-ESMmercurial3.7.3-1ubuntu1.1
ubuntu 17.10mercurial4.3.1-2

References

All 25 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.