CVE-2017-1000116OS Command Injection in Mercurial

Severity
9.8CRITICALNVD
NVD8.8
EPSS
6.6%
top 8.78%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 5
Latest updateMay 14

Description

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

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 3.9 | Impact: 5.9

Affected Packages14 packages

Debianmercurial/mercurial< 4.3.1-1+3

Also affects: Debian Linux 8.0, 9.0, Ubuntu Linux 14.04, 16.04, 17.04, Enterprise Linux 7.4, 7.6, 7.5

Patches

🔴Vulnerability Details

17
GHSA
GHSA-jqcx-qqvc-9wx5: git-annex before 62022-05-14
GHSA
GHSA-jjxg-hpm7-g95f: Bazaar through 22022-05-13
OSV
Mercurial is vulnerable to shell injection attack2022-05-13
GHSA
GHSA-ff3p-f5xw-q723: http_transport2022-05-13
OSV
Dulwich RCE Vulnerability2022-05-13

📋Vendor Advisories

8
Red Hat
python-dulwich: Setting SSH arguments from untrusted URLs allows code execution2017-10-29
Red Hat
bzr: does not strip bzr+ssh SSH options2017-08-26
Red Hat
mercurial: command injection on clients through malicious ssh URLs2017-08-10
Debian
CVE-2017-16228: dulwich - Dulwich before 0.18.5, when an SSH subprocess is used, allows remote attackers t...2017
Debian
CVE-2017-14176: breezy - Bazaar through 2.7.0, when Subprocess SSH is used, allows remote attackers to ex...2017

💬Community

5
Bugzilla
CVE-2017-16228 python-dulwich: Setting SSH arguments from untrusted URLs allows code execution2017-11-03
HackerOne
RCE via ssh:// URIs in multiple VCS2017-09-21
Bugzilla
CVE-2017-12976 git-annex: RCE via ssh URL with an initial dash character in the hostname2017-08-24
Bugzilla
CVE-2017-1000116 mercurial: command injection on clients through malicious ssh URLs [fedora-all]2017-08-11
Bugzilla
CVE-2017-1000116 mercurial: command injection on clients through malicious ssh URLs2017-08-09
CVE-2017-1000116 — OS Command Injection in Mercurial | cvebase