Skip to content
Noroxi
NVD / CVE Program· CNA mitre

CVE-2017-9462: In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and consequently execute…

HighCVSS 8.8 · v3.1—Weaponized Fix available

Noroxi assessment

Priority: Plan (action score 42/100)

  • A ready-made attack module is public (Metasploit); exploiting it takes no special expertise.
  • Probability of exploitation in the next 30 days: 21.6% (FIRST EPSS); higher than 97.6% of all records.
  • Anyone who can reach it over the internet can trigger it. A low-privileged account is enough. No user action is required. No special conditions are required; it is repeatable.
  • Fixed version: mercurial (Debian:12) 4.3.1-1; mercurial (Debian:7) 2.2.2-4+deb7u4; mercurial (Debian:8) 3.1.2-2+deb8u5.

Add it to your regular patch cycle. Upgrade to mercurial (Debian:12) 4.3.1-1; mercurial (Debian:7) 2.2.2-4+deb7u4; mercurial (Debian:8) 3.1.2-2+deb8u5 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and consequently execute arbitrary code, by using --debugger as a repository name.

Published
Jun 6, 2017
Updated
Jun 16, 2026
EPSS
21.6% · 97th percentile

Report tools

JSON

Action score

42

Plan

Add it to your regular patch cycle.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
7 / 30 · 21.6%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • Weaponized exploit exists
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2017-9462

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
mercurialmercurial
debiandebian linux
redhatenterprise linux desktop
redhatenterprise linux server
redhatenterprise linux server aus
redhatenterprise linux server eus
redhatenterprise linux server tus
redhatenterprise linux workstation

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • debian debian linux8.0
  • debian debian linux9.0
  • mercurial mercurialbefore 4.1.3
  • redhat enterprise linux desktop6.0
  • redhat enterprise linux desktop7.0
  • redhat enterprise linux server6.0
  • redhat enterprise linux server7.0
  • redhat enterprise linux server aus7.3

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:12mercurialbefore 4.3.1-14.3.1-1
Debian:7mercurialbefore 2.2.2-4+deb7u42.2.2-4+deb7u4
Debian:8mercurialbefore 3.1.2-2+deb8u53.1.2-2+deb8u5
PyPImercurialbefore 4.1.34.1.3
Red Hat:enterprise_linux:6::clientemacs-mercurialbefore 0:1.4-5.el6_90:1.4-5.el6_9
Red Hat:enterprise_linux:6::clientemacs-mercurial-elbefore 0:1.4-5.el6_90:1.4-5.el6_9
Red Hat:enterprise_linux:6::clientmercurialbefore 0:1.4-5.el6_90:1.4-5.el6_9
Red Hat:enterprise_linux:6::clientmercurial-debuginfobefore 0:1.4-5.el6_90:1.4-5.el6_9
Red Hat:enterprise_linux:6::clientmercurial-hgkbefore 0:1.4-5.el6_90:1.4-5.el6_9
Red Hat:enterprise_linux:7::clientemacs-mercurialbefore 0:2.6.2-7.el7_30:2.6.2-7.el7_3
Red Hat:enterprise_linux:7::clientemacs-mercurial-elbefore 0:2.6.2-7.el7_30:2.6.2-7.el7_3
Red Hat:enterprise_linux:7::clientmercurialbefore 0:2.6.2-7.el7_30:2.6.2-7.el7_3
Red Hat:enterprise_linux:7::clientmercurial-debuginfobefore 0:2.6.2-7.el7_30:2.6.2-7.el7_3
Red Hat:enterprise_linux:7::clientmercurial-hgkbefore 0:2.6.2-7.el7_30:2.6.2-7.el7_3
SUSE:Linux Enterprise Software Development Kit 11 SP4mercurialbefore 2.3.2-0.17.12.3.2-0.17.1
SUSE:Linux Enterprise Software Development Kit 12 SP2mercurialbefore 2.8.2-14.12.8.2-14.1

Other highest-scoring records for the same primary product.

  • CVE-2014-9390Git before 1.8.5.6, 1.9.x before 1.9.5, 2.0.x before 2.0.5, 2.1.x before 2.1.4, and 2.2.x before 2.2.1 on Windows and OS X; Mercurial…
    62This week
  • CVE-2017-17458In Mercurial before 4.4.1, it is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the…
    41Plan
  • CVE-2017-1000116Mercurial prior to 4.3 did not adequately sanitize hostnames passed to ssh, leading to possible shell-injection attacks.
    41Plan

Published before and after this one in the same product

  • ← EarlierCVE-2016-3630Apr 13, 2016 · The binary delta decoder in Mercurial before 3.7.3 allows remote attackers to execute arbitrary code via a (1) clone, (2) push, or (3) pull…
    36Monitor
  • ← EarlierCVE-2016-3105May 9, 2016 · The convert extension in Mercurial before 3.8 might allow context-dependent attackers to execute arbitrary code via a crafted git…
    36Monitor
  • Later →CVE-2017-1000115Oct 4, 2017 · Mercurial prior to version 4.3 is vulnerable to a missing symlink check that can malicious repositories to modify files outside the…
    31Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:mercurial4.3.1-1 · Debian:12Package registry (OSV)
PyPI:mercurial4.1.3Package registry (OSV)
red hat:emacs-mercurial0:1.4-5.el6_9 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:emacs-mercurial-el0:1.4-5.el6_9 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:mercurial0:1.4-5.el6_9 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:mercurial-debuginfo0:1.4-5.el6_9 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
red hat:mercurial-hgk0:1.4-5.el6_9 · Red Hat:enterprise_linux:6::clientPackage registry (OSV)
suse:mercurial2.3.2-0.17.1 · SUSE:Linux Enterprise Software Development Kit 11 SP4Package registry (OSV)

Exploit status

Weaponized

A ready exploit tool or active in-the-wild use is known for this vulnerability. This should be your top priority.

Evidence

  • Metasploit module ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Metasploit moduleexploit/linux/ssh/mercurial_ssh_execMercurial Custom hg-ssh Wrapper Remote Code Execexploit2017-04-18

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Metasploit-50 d
  2. Published
  3. TodayNov 14, 2026+3448 d

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Not on record for this CVE: EPSS history · researcher credit · variant or chain candidate · public bounty program.

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • A low-privileged account is enough.
  • No user action is required.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

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

nvd-primary

References

All records