VDB

CVE-2017-17458

CVE-2017-17458 PUBLISHED CVSS 9.800000190734863 CRITICAL

Mercurial vulnerable to arbitrary code injection

Reported by mitre · Published December 7, 2017

mercurial is fixed in 4.4.1 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
mercurialPyPI4.4.1
mercurialmercurial4.4.1
mercurialUbuntu:14.04:LTS2.8.2-1ubuntu1.4
mercurialUbuntu:16.04:LTS3.7.3-1ubuntu1.1

Risk scores

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

Affected products

VendorProductVersions
n/an/an/a
PyPImercurial0
n/an/a*

Timeline

  • Dec 7, 2017 CVE Published
  • Sep 26, 2019 PoC Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 10, 2026 Security Advisory
  • Oct 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2017-17458
vulnetix vdb fixes CVE-2017-17458

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-17458/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›