Vulnerability Details : CVE-2017-9462
Public exploit exists!
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.
Vulnerability category: Execute code
Exploit prediction scoring system (EPSS) score for CVE-2017-9462
Probability of exploitation activity in the next 30 days: 3.00%
Percentile, the proportion of vulnerabilities that are scored at or less: ~ 90 % EPSS Score History EPSS FAQ
Metasploit modules for CVE-2017-9462
-
Mercurial Custom hg-ssh Wrapper Remote Code Exec
Disclosure Date: 2017-04-18First seen: 2020-04-26exploit/linux/ssh/mercurial_ssh_execThis module takes advantage of custom hg-ssh wrapper implementations that don't adequately validate parameters passed to the hg binary, allowing users to trigger a Python Debugger session, which allows arbitrary Python code execution. Authors: - claudijd
CVSS scores for CVE-2017-9462
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source |
---|---|---|---|---|---|
9.0
|
HIGH | AV:N/AC:L/Au:S/C:C/I:C/A:C |
8.0
|
10.0
|
NIST |
8.8
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
2.8
|
5.9
|
NIST |
CWE ids for CVE-2017-9462
-
The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.Assigned by: nvd@nist.gov (Primary)
References for CVE-2017-9462
-
https://access.redhat.com/errata/RHSA-2017:1576
RHSA-2017:1576 - Security Advisory - Red Hat Customer PortalThird Party Advisory
-
http://www.securityfocus.com/bid/99123
Mercurial CVE-2017-9462 Remote Code Execution VulnerabilityThird Party Advisory;VDB Entry
-
http://www.debian.org/security/2017/dsa-3963
Debian -- Security Information -- DSA-3963-1 mercurialThird Party Advisory
-
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.1.3_.282017-4-18.29
WhatsNew - MercurialRelease Notes;Vendor Advisory
-
https://bugs.debian.org/861243
#861243 - mercurial: CVE-2017-9462: allows remote users unauthorized access to a hg serve --stdio instance - Debian Bug report logsIssue Tracking;Mailing List;Patch;Third Party Advisory
-
https://www.mercurial-scm.org/repo/hg/rev/77eaf9539499
Mercurial: 77eaf9539499Mailing List;Vendor Advisory
-
https://security.gentoo.org/glsa/201709-18
Mercurial: Multiple vulnerabilities (GLSA 201709-18) — Gentoo securityThird Party Advisory
-
https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html
[SECURITY] [DLA 1414-1] mercurial security updateMailing List;Third Party Advisory
Products affected by CVE-2017-9462
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.3:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.3:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.4:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.6:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_eus:7.5:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.3:*:*:*:*:*:*:*
- cpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:*
- cpe:2.3:a:mercurial:mercurial:*:*:*:*:*:*:*:*