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 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
mercurial (PTS) | bullseye | 5.6.1-4 | fixed |
bookworm | 6.3.2-1 | fixed | |
sid, trixie | 6.9-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
mercurial | source | wheezy | 2.2.2-4+deb7u5 | DLA-1072-1 | ||
mercurial | source | jessie | 3.1.2-2+deb8u4 | DSA-3963-1 | ||
mercurial | source | stretch | 4.0-1+deb9u1 | DSA-3963-1 | ||
mercurial | source | (unstable) | 4.3.1-1 | 871710 |
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