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.
CVE-2017-17458
This critical-severity CVE scores 9.8 under NVD CVSS v3. EPSS exploit probability: 17.2%, top 5% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EPSS
- 92.8%
- KEV
- Not listed
Published
December 7, 2017
Last Modified
May 13, 2026
Advisory Details (9)
Auto-updated May 18, 2026WhatsNew - Mercurial
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29[Bug 5730] New: [CRITICAL]Arbitrary command execution in mercurial repo with a git submodule
https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html[SECURITY] [DLA 2293-1] mercurial security update
https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html[SECURITY] [DLA 1414-2] mercurial regression update
https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html[SECURITY] [DLA 1414-1] mercurial security update
https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html[SECURITY] [DLA 1224-1] mercurial security update
https://lists.debian.org/debian-lts-announce/2017/12/msg00027.htmlSourcetree Security Advisory 2018-01-24 | Sourcetree | Atlassian Support
https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html[CRITICAL]Arbitrary command execution in mercurial repo with a git submodule (#5730) · Issues · mercurial / mercurial-devel · GitLab
https://bz.mercurial-scm.org/show_bug.cgi?id=5730Affected Packages
(1 across 1 ecosystem)
PyPI(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| mercurial | 0.8.1 ... 4.4rc0 (136 versions) | 4.4.1 | — |
Data Freshness Timeline
(refreshed 8× in last 7d / 36× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:15 UTCOSV refresh
- 2026-07-08 15:10 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-29 14:03 UTCEPSS rescore
- 2026-06-28 14:04 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:05 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
Show 56 moreShow fewer
- 2026-06-20 03:12 UTCOSV refresh
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-10 22:15 UTCEPSS rescore
- 2026-06-08 14:14 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-05 22:44 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-02 20:11 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-31 22:28 UTCEPSS rescore
- 2026-05-31 04:25 UTCOSV refresh
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-29 13:41 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-23 00:10 UTCEG score recompute
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:10 UTCEG score recompute
- 2026-05-20 06:49 UTCEG score recompute
- 2026-05-20 02:28 UTCEG score recompute
- 2026-05-19 22:07 UTCEG score recompute
- 2026-05-19 17:46 UTCEG score recompute
- 2026-05-19 13:25 UTCEG score recompute
- 2026-05-19 09:03 UTCEG score recompute
- 2026-05-19 04:42 UTCEG score recompute
- 2026-05-19 00:21 UTCEG score recompute
- 2026-05-18 21:30 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
Frequently asked(5)
What is CVE-2017-17458?
When was CVE-2017-17458 disclosed?
Is CVE-2017-17458 actively exploited?
What is the CVSS score of CVE-2017-17458?
How do I remediate CVE-2017-17458?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2017-17458
Is Your Infrastructure Affected by CVE-2017-17458?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.