mercurial: arbitrary command execution in mercurial repo with a git submodule
Published Dec 7, 2017
9.3
CRITICALCVSS 4.0
EPSS 6.33%
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.
Affected products
No data.
Configuration 2
- 7.0
- 8.0
No data.
Red Hat Enterprise Linux 6
mercurial
Will not fix
Red Hat Enterprise Linux 7
mercurial
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 6 | mercurial | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | mercurial | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue affects the versions of mercurial as shipped with Red Hat Enterprise Linux 7. Red Hat Product Security has rated this issue as having Moderate security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Red Hat mitigation
Disable sub-repositories
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
AV:N/AC:L/Au:N/C:C/I:C/A:C
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (50 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.33% (0.06331) | 93.42th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.33% (0.06331) | 92.71th | v5 (v2026.06.15) |
| Mar 4, 2026 | 17.25% (0.17249) | 94.90th | v4 (v2025.03.14) |
| Mar 1, 2026 | 6.01% (0.06009) | 90.57th | v4 (v2025.03.14) |
| Feb 4, 2026 | 17.25% (0.17249) | 94.84th | v4 (v2025.03.14) |
| Feb 1, 2026 | 6.01% (0.06009) | 90.51th | v4 (v2025.03.14) |
| Jan 4, 2026 | 17.25% (0.17249) | 94.80th | v4 (v2025.03.14) |
| Jan 1, 2026 | 6.01% (0.06009) | 90.46th | v4 (v2025.03.14) |
| Dec 4, 2025 | 17.25% (0.17249) | 94.77th | v4 (v2025.03.14) |
| Dec 1, 2025 | 6.01% (0.06009) | 90.38th | v4 (v2025.03.14) |
| Nov 4, 2025 | 17.25% (0.17249) | 94.75th | v4 (v2025.03.14) |
| Nov 1, 2025 | 6.01% (0.06009) | 90.31th | v4 (v2025.03.14) |
| Oct 4, 2025 | 17.25% (0.17249) | 94.78th | v4 (v2025.03.14) |
| Oct 1, 2025 | 6.01% (0.06009) | 90.36th | v4 (v2025.03.14) |
| Sep 4, 2025 | 17.25% (0.17249) | 94.79th | v4 (v2025.03.14) |
| Sep 1, 2025 | 6.01% (0.06009) | 90.41th | v4 (v2025.03.14) |
| Aug 6, 2025 | 17.25% (0.17249) | 94.75th | v4 (v2025.03.14) |
| Aug 1, 2025 | 6.01% (0.06009) | 90.40th | v4 (v2025.03.14) |
| Jul 4, 2025 | 17.25% (0.17249) | 94.72th | v4 (v2025.03.14) |
| Jul 1, 2025 | 6.01% (0.06009) | 90.31th | v4 (v2025.03.14) |
| Jun 7, 2025 | 17.97% (0.17974) | 94.80th | v4 (v2025.03.14) |
| Jun 1, 2025 | 6.31% (0.06307) | 90.49th | v4 (v2025.03.14) |
| May 4, 2025 | 17.97% (0.17974) | 94.77th | v4 (v2025.03.14) |
| May 1, 2025 | 6.31% (0.06307) | 90.45th | v4 (v2025.03.14) |
| Apr 9, 2025 | 17.97% (0.17974) | 94.65th | v4 (v2025.03.14) |
| Apr 8, 2025 | 6.31% (0.06307) | 90.06th | v4 (v2025.03.14) |
| Apr 1, 2025 | 17.97% (0.17974) | 94.64th | v4 (v2025.03.14) |
| Mar 31, 2025 | 6.31% (0.06307) | 90.01th | v4 (v2025.03.14) |
| Mar 30, 2025 | 17.97% (0.17974) | 94.64th | v4 (v2025.03.14) |
| Mar 29, 2025 | 21.16% (0.21162) | 92.93th | v4 (v2025.03.14) |
| Mar 28, 2025 | 17.97% (0.17974) | 94.64th | v4 (v2025.03.14) |
| Mar 27, 2025 | 6.31% (0.06307) | 89.59th | v4 (v2025.03.14) |
| Mar 23, 2025 | 17.97% (0.17974) | 94.36th | v4 (v2025.03.14) |
| Mar 22, 2025 | 6.31% (0.06307) | 90.11th | v4 (v2025.03.14) |
| Mar 17, 2025 | 17.97% (0.17974) | 94.65th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.71% (0.00707) | 81.06th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.71% (0.00707) | 79.76th | v3 (v2023.03.01) |
| Jul 3, 2023 | 0.71% (0.00707) | 77.70th | v3 (v2023.03.01) |
| Jun 9, 2023 | 0.90% (0.00900) | 80.46th | v3 (v2023.03.01) |
| May 8, 2023 | 1.49% (0.01488) | 84.83th | v3 (v2023.03.01) |
| Apr 30, 2023 | 1.94% (0.01943) | 86.94th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.77% (0.01773) | 86.07th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.54% (0.01537) | 74.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.54% (0.01537) | 72.41th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.54% (0.01537) | 51.33th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.07% (0.02069) | 50.36th | v1 |
| Jan 6, 2022 | 2.07% (0.02069) | 49.86th | v1 |
| Sep 1, 2021 | 2.07% (0.02069) | 77.27th | v1 |
| Apr 14, 2021 | 2.07% (0.02069) | 0.00th | v1 |
References (16)
- http://www.securityfocus.com/bid/102926 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2017-17458 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1509868 Issue Tracking
- https://bz.mercurial-scm.org/show_bug.cgi?id=5730 x_refsource_MISCIssue TrackingThird Party Advisory
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html x_refsource_CONFIRMThird Party Advisory
- https://github.com/advisories/GHSA-6v56-cpg6-3rpx Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2017-90.yaml
- https://lists.debian.org/debian-lts-announce/2017/12/msg00027.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2018/07/msg00041.html mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2017-17458
- https://web.archive.org/web/20200227132808/http://www.securityfocus.com/bid/102926
- https://www.cve.org/CVERecord?id=CVE-2017-17458
- https://www.mercurial-scm.org/pipermail/mercurial-devel/2017-November/107333.html x_refsource_MISCVendor Advisory
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.4.1_.282017-11-07.29 x_refsource_MISCVendor Advisory
Change history (0)
No recorded changes yet.