CVE-2017-17458
publishedmercurial: arbitrary command execution in mercurial repo with a git submodule
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | jessie | mercurial | Advisory build | 3.1.2-2+deb8u5 | DLA-1414-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercuriali586 | Advisory build | 2.3.2-0.18.6.1 | SUSE-SU-2018:0127-1 |
| Debian | jessie | mercurial | Advisory build | 3.1.2-2+deb8u6 | DLA-1414-2 |
| Debian | stretch | mercurial | Advisory build | 4.0-1+deb9u2 | DLA-2293-1 |
| Debian | wheezy | mercurial | Advisory build | 2.2.2-4+deb7u6 | DLA-1224-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercurialia64 | Advisory build | 2.3.2-0.18.6.1 | SUSE-SU-2018:0127-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercurialppc64 | Advisory build | 2.3.2-0.18.6.1 | SUSE-SU-2018:0127-1 |
Show 22 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-11-SP4 | mercurials390x | Advisory build | 2.3.2-0.18.6.1 | SUSE-SU-2018:0127-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercurialx86_64 | Advisory build | 2.3.2-0.18.6.1 | SUSE-SU-2018:0127-1 |
| SUSE / openSUSE | SLE-12-SP2 | mercurialaarch64 | Advisory build | 2.8.2-15.6.1 | SUSE-SU-2018:0129-1 |
| SUSE / openSUSE | SLE-12-SP2 | mercurialppc64le | Advisory build | 2.8.2-15.6.1 | SUSE-SU-2018:0129-1 |
| SUSE / openSUSE | SLE-12-SP2 | mercurials390x | Advisory build | 2.8.2-15.6.1 | SUSE-SU-2018:0129-1 |
| SUSE / openSUSE | SLE-12-SP2 | mercurialx86_64 | Advisory build | 2.8.2-15.6.1 | SUSE-SU-2018:0129-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurialaarch64 | Advisory build | 2.8.2-15.6.1 | SUSE-SU-2018:0129-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurialppc64le | Advisory build | 2.8.2-15.6.1 | SUSE-SU-2018:0129-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurials390x | Advisory build | 2.8.2-15.6.1 | SUSE-SU-2018:0129-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurialx86_64 | Advisory build | 2.8.2-15.6.1 | SUSE-SU-2018:0129-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurialaarch64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurialppc64le | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurials390x | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurialx86_64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-langaarch64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-langppc64le | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-langs390x | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-langx86_64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-testsaarch64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-testsppc64le | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-testss390x | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-testsx86_64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
9- 102926 http://www.securityfocus.com/bid/102926
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html
- [debian-lts-announce] 20171228 [SECURITY] [DLA 1224-1] mercurial security update https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html
- [debian-lts-announce] 20180705 [SECURITY] [DLA 1414-1] mercurial security update https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html
- [debian-lts-announce] 20180727 [SECURITY] [DLA 1414-2] mercurial regression update https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html
- [debian-lts-announce] 20200731 [SECURITY] [DLA 2293-1] mercurial security update https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- 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
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 59330d85f7b7b814db72067daf81665d26c48b232d02b63103944ff79d925679
- Ingested
- 23 Sep 2026, 07:42:19 UTC
- Source record
- Official CVE record