Breaking: Java4Shell (CVE-2026-114938) - Less Than 0.12% of JVMs Estimated at Risk of RCE
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2017-17458

mercurial: arbitrary command execution in mercurial repo with a git submodule

Overview

Published
7 Dec 2017
Modified
17 Jun 2026
Critical CVE
1 Registry packages
6 OS packages
4 Linux distributions
Yes Fix available

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.

Source: OX vulnerability database

Severity

9.8 · CRITICAL

CVSS 3.0 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-78

Affected packages · 1

Packages affected by CVE-2017-17458
EcosystemPackageVulnerableFixed in
PyPI mercurial <4.4.1 4.4.1

Open a package to see all its vulnerabilities.

Operating systems · 8 fixes

Red Hat 1 release · 1 package

wont fix 1
emacs-mercurial
Red Hat fixes for CVE-2017-17458
ReleasePackageFixed in
7 emacs-mercurial +3 wont fix

debian 5 releases · 1 package

fixed 5
mercurial
debian fixes for CVE-2017-17458
ReleasePackageFixed in
11 mercurial 4.4.1-1
12 mercurial 4.4.1-1
13 mercurial 4.4.1-1
14 mercurial 4.4.1-1
9 mercurial 4.0-1+deb9u2

echo 1 release · 1 package

fixed 1
mercurial
echo fixes for CVE-2017-17458
ReleasePackageFixed in
mercurial 4.4.1-1

openSUSE 1 release · 1 package

fixed 1
mercurial
openSUSE fixes for CVE-2017-17458
ReleasePackageFixed inAdvisory
Tumbleweed mercurial +2 5.9.1-2.1 openSUSE-SU-2024:10586-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.