Name | CVE-2017-1000116 |
Description | Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-1072-1, DSA-3963-1 |
Debian Bugs | 871710 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
mercurial (PTS) | jessie, jessie (lts) | 3.1.2-2+deb8u7 | fixed |
| stretch (security), stretch (lts), stretch | 4.0-1+deb9u2 | fixed |
| buster | 4.8.2-1+deb10u1 | fixed |
| bullseye | 5.6.1-4 | fixed |
| bookworm | 6.3.2-1 | fixed |
| trixie | 6.8.2-1 | fixed |
| sid | 6.9-1 | fixed |
The information below is based on the following data on fixed versions.
Notes
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.3_.282017-08-10.29
11 patches need to be applied, the following are for 4.2:
https://www.mercurial-scm.org/repo/hg/rev/53224b1ffbc2
https://www.mercurial-scm.org/repo/hg/rev/e10745311406
https://www.mercurial-scm.org/repo/hg/rev/f93975a5ebe8
https://www.mercurial-scm.org/repo/hg/rev/f9134e96ed0f
https://www.mercurial-scm.org/repo/hg/rev/92b583e3e522
https://www.mercurial-scm.org/repo/hg/rev/08cfc4baf3ba
https://www.mercurial-scm.org/repo/hg/rev/55681baf4cf9
https://www.mercurial-scm.org/repo/hg/rev/173ecccb9ee7
https://www.mercurial-scm.org/repo/hg/rev/ca398a50ca00
https://www.mercurial-scm.org/repo/hg/rev/00a75672a9cb
https://www.mercurial-scm.org/repo/hg/rev/943c91326b23
3.7 and 4.1 backports also available at https://bitbucket.org/atlassian/mercurial/commits/branch/sec-3.7
and https://bitbucket.org/octobus/mercurial-backport/branch/backport-4.1