Name | CVE-2017-17458 |
Description | In 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. |
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-1224-1, DLA-1414-1, DLA-1414-2, DLA-2293-1 |
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.8.2-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+deb7u6 | DLA-1224-1 | ||
mercurial | source | jessie | 3.1.2-2+deb8u6 | DLA-1414-2 | ||
mercurial | source | stretch | 4.0-1+deb9u2 | DLA-2293-1 | ||
mercurial | source | (unstable) | 4.4.1-1 |
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