# CVE-2017-17458

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 6% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2017-12-07 · Modified: 2024-08-05
- Aliases: MGASA-2018-0041, SUSE-SU-2018:0127-1, SUSE-SU-2018:0129-1, GHSA-6v56-cpg6-3rpx, PYSEC-2017-90, UBUNTU-CVE-2017-17458, DEBIAN-CVE-2017-17458, DLA-1224-1, DLA-1414-2
- Record: https://cvemate.com/vulnerability/CVE-2017-17458 · JSON: https://cvemate.com/vulnerability/CVE-2017-17458/json

## Description

```text
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.
```

## Signals

- CVSS: 10 high (v2.0, NVD) AV:N/AC:L/Au:N/C:C/I:C/A:C
- EPSS: 6.386%, percentile 93.845%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian mercurial (Debian): \< 4.4.1-1 \| \< 2.2.2-4+deb7u6 \| \< 3.1.2-2+deb8u6
- ubuntu mercurial (Ubuntu): \< 2.8.2-1ubuntu1.4 \| \< 3.7.3-1ubuntu1.1
- debian debian\_linux: 7.0 \| 8.0
- mageia mercurial (Mageia): \< 3.1.1-5.6.mga5
- mageia mercurial (Mageia): \< 4.1.3-1.2.mga6
- mercurial mercurial: \< 4.4.1
- PyPI mercurial (PyPI): \< 4.4.1
- suse mercurial&distro=SUSE Linux Enterprise Software Development Kit 11 SP4 (SUSE Linux Enterprise): \< 2.3.2-0.18.6.1
- suse mercurial&distro=SUSE Linux Enterprise Software Development Kit 12 SP2 (SUSE Linux Enterprise): \< 2.8.2-15.6.1
- suse mercurial&distro=SUSE Linux Enterprise Software Development Kit 12 SP3 (SUSE Linux Enterprise): \< 2.8.2-15.6.1

## References (first 20 of 24)

- <https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html>
- <https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29>
- <https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html>
- <https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html>
- <https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html>
- <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>
- <https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html>
- <https://advisories.mageia.org/MGASA-2018-0041.html>
- <https://bugs.mageia.org/show_bug.cgi?id=22171>
- <https://lists.opensuse.org/opensuse-updates/2017-12/msg00071.html>
- <https://www.suse.com/support/update/announcement/2018/suse-su-20180127-1/>
- <https://bugzilla.suse.com/1071715>
- <https://www.suse.com/security/cve/CVE-2017-17458>
- <https://www.suse.com/support/update/announcement/2018/suse-su-20180129-1/>
- <https://nvd.nist.gov/vuln/detail/CVE-2017-17458>
- <https://github.com/dscho/hg>
- <https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-90.yaml>
- <https://web.archive.org/web/20200227132808/http://www.securityfocus.com/bid/102926>

---

Data as of 2026-12-05T05:05:33.730Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
