CVE-2017-17458

NameCVE-2017-17458
DescriptionIn Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1224-1, DLA-1414-1, DLA-1414-2, DLA-2293-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
mercurial (PTS)jessie, jessie (lts)3.1.2-2+deb8u7fixed
stretch (security), stretch (lts), stretch4.0-1+deb9u2fixed
buster4.8.2-1+deb10u1fixed
bullseye5.6.1-4fixed
bookworm6.3.2-1fixed
trixie6.8.2-1fixed
sid6.9-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
mercurialsourcewheezy2.2.2-4+deb7u6DLA-1224-1
mercurialsourcejessie3.1.2-2+deb8u6DLA-1414-2
mercurialsourcestretch4.0-1+deb9u2DLA-2293-1
mercurialsource(unstable)4.4.1-1

Notes

https://bz.mercurial-scm.org/show_bug.cgi?id=5730
https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29
Fixed by: https://mercurial-scm.org/repo/hg/rev/071cbeba4212
Alternative workaround/additionally needed: https://mercurial-scm.org/repo/hg/rev/5e27afeddaee

Search for package or bug name: Reporting problems