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: 6.3% (93rd percentile of EPSS-scored CVEs). 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
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALmedium confidence
- EG Risk
- 51EG Risk 51/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation6% × 40%Automatability30% × 15%CISA SSVC: Track at low or medium mission impact; Track* or Attend at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 6.3%
- EPSS %ILE
- 93rd
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track* or Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation none (no KEV listing, exploit record or EPSS ≥ 50%) · Automatable unknown (not published for this CVE) · Technical impact total (CVSS ≥ 9.0). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
December 7, 2017
Last Modified
June 17, 2026
Advisory Details (9)
Auto-updated Oct 6, 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
(8 across 8 ecosystems)
Debian:11(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| mercurial | — |
| — |
Debian:12(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| mercurial | — |
| — |
Debian:13(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| mercurial | — |
| — |
Debian:14(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| mercurial | — |
| — |
Debian:7(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| mercurial | 2.2.2-3 ... 2.2.2-4+deb7u5 (7 versions) |
| — |
Debian:8(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| mercurial | 3.1.2-2 ... 3.1.2-2+deb8u5 (6 versions) |
| — |
Debian:9(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| mercurial | 4.0-1, 4.0-1+deb9u1 |
| — |
PyPI(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| mercurial | 0.8.1 ... 4.4rc0 (136 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 8× in last 7d / 23× 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.
Showing the most recent 100 of 153 total refreshes for this CVE.
- 2026-10-09 20:02 UTCEPSS rescore
- 2026-10-08 16:35 UTCEPSS rescore
- 2026-10-07 23:41 UTCEPSS rescore
- 2026-10-06 15:11 UTCEPSS rescore
- 2026-10-05 17:38 UTCEPSS rescore
- 2026-10-04 23:18 UTCEPSS rescore
- 2026-10-04 22:18 UTCOSV refresh
- 2026-10-03 14:21 UTCEPSS rescore
- 2026-09-30 14:58 UTCEPSS rescore
- 2026-09-30 09:30 UTCEG score recompute
- 2026-09-28 13:45 UTCEPSS rescore
- 2026-09-27 13:40 UTCEPSS rescore
- 2026-09-26 15:53 UTCEPSS rescore
- 2026-09-24 13:59 UTCEPSS rescore
- 2026-09-19 15:36 UTCEPSS rescore
- 2026-09-18 19:22 UTCEPSS rescore
- 2026-09-17 19:22 UTCEPSS rescore
- 2026-09-15 07:25 UTCOSV refresh
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-13 16:42 UTCEPSS rescore
- 2026-09-12 14:55 UTCEPSS rescore
- 2026-09-11 09:31 UTCEPSS rescore
- 2026-09-10 09:26 UTCEPSS rescore
- 2026-09-07 15:56 UTCEPSS rescore
- 2026-09-04 13:56 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-09-04 05:01 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 13:48 UTCEPSS rescore
- 2026-09-01 03:31 UTCEPSS rescore
- 2026-08-30 19:13 UTCEPSS rescore
- 2026-08-28 21:36 UTCEPSS rescore
- 2026-08-27 14:20 UTCEPSS rescore
- 2026-08-27 07:04 UTCOSV refresh
- 2026-08-26 14:41 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-24 14:10 UTCEPSS rescore
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-20 22:50 UTCEPSS rescore
- 2026-08-19 16:59 UTCEPSS rescore
- 2026-08-18 13:43 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:10 UTCEPSS rescore
- 2026-08-15 01:26 UTCEPSS rescore
- 2026-08-13 21:56 UTCEPSS rescore
- 2026-08-10 20:38 UTCOSV refresh
- 2026-08-09 13:42 UTCEPSS rescore
- 2026-08-08 16:32 UTCEPSS rescore
- 2026-08-07 16:22 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:12 UTCEPSS rescore
- 2026-08-04 15:05 UTCEPSS rescore
- 2026-08-04 10:32 UTCEPSS rescore
- 2026-08-03 10:30 UTCEPSS rescore
- 2026-08-02 02:23 UTCEPSS rescore
- 2026-08-01 04:11 UTCEPSS rescore
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-28 15:32 UTCEPSS rescore
- 2026-07-25 20:31 UTCOSV refresh
- 2026-07-25 14:13 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:28 UTCEG score recompute
- 2026-07-22 22:07 UTCEG score recompute
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-13 06:09 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 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
Related CVEs(same product + same CWE)
Same product
10 shownDebian:9:mercurial · Debian:7:mercurial
Same CWE
10 shownCWE-78
- CVE-2017-17055EG 9.0EPSS p95CRITICAL
- CVE-2017-16921EG 8.8EPSS p97HIGH
- CVE-2017-10902EG 9.8CRITICAL
- CVE-2017-17405NVD 8.8EG 9.0EPSS p99CRITICAL
- CVE-2017-10904EG 9.8CRITICAL
- CVE-2017-1000159EG 7.8HIGH
- CVE-2017-1000214EG 9.8CRITICAL
- CVE-2017-16960EG 8.8HIGH
- CVE-2017-16958EG 8.8HIGH
- CVE-2017-16957EG 8.8EPSS p93HIGH
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.