CVEdetails.com the ultimate security vulnerability data source
(e.g.: CVE-2009-1234 or 2010-1234 or 20101234)
Log In   Register
Vulnerability Feeds & WidgetsNew   www.itsecdb.com  

Vulnerability Details : CVE-2017-9462

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.
Publish Date : 2017-06-06 Last Update Date : 2019-10-02
Search Twitter   Search YouTube   Search Google

- CVSS Scores & Vulnerability Types

CVSS Score
9.0
Confidentiality Impact Complete (There is total information disclosure, resulting in all system files being revealed.)
Integrity Impact Complete (There is a total compromise of system integrity. There is a complete loss of system protection, resulting in the entire system being compromised.)
Availability Impact Complete (There is a total shutdown of the affected resource. The attacker can render the resource completely unavailable.)
Access Complexity Low (Specialized access conditions or extenuating circumstances do not exist. Very little knowledge or skill is required to exploit. )
Authentication Single system (The vulnerability requires an attacker to be logged into the system (such as at a command line or via a desktop session or web interface).)
Gained Access Admin
Vulnerability Type(s) Execute Code
CWE ID 732

- Related OVAL Definitions

Title Definition Id Class Family
RHSA-2017:1576: mercurial security update (Important) oval:com.redhat.rhsa:def:20171576 unix
OVAL (Open Vulnerability and Assessment Language) definitions define exactly what should be done to verify a vulnerability or a missing patch. Check out the OVAL definitions if you want to learn what you should do to verify a vulnerability.

- Products Affected By CVE-2017-9462

# Product Type Vendor Product Version Update Edition Language
1 OS Debian Debian Linux 8.0 Version Details Vulnerabilities
2 OS Debian Debian Linux 9.0 Version Details Vulnerabilities
3 Application Mercurial Mercurial 4.12 Version Details Vulnerabilities
4 OS Redhat Enterprise Linux Desktop 6.0 Version Details Vulnerabilities
5 OS Redhat Enterprise Linux Desktop 7.0 Version Details Vulnerabilities
6 OS Redhat Enterprise Linux Server 6.0 Version Details Vulnerabilities
7 OS Redhat Enterprise Linux Server 7.0 Version Details Vulnerabilities
8 OS Redhat Enterprise Linux Server Aus 7.3 Version Details Vulnerabilities
9 OS Redhat Enterprise Linux Server Aus 7.4 Version Details Vulnerabilities
10 OS Redhat Enterprise Linux Server Aus 7.6 Version Details Vulnerabilities
11 OS Redhat Enterprise Linux Server Eus 7.3 Version Details Vulnerabilities
12 OS Redhat Enterprise Linux Server Eus 7.4 Version Details Vulnerabilities
13 OS Redhat Enterprise Linux Server Eus 7.5 Version Details Vulnerabilities
14 OS Redhat Enterprise Linux Server Eus 7.6 Version Details Vulnerabilities
15 OS Redhat Enterprise Linux Server Tus 7.3 Version Details Vulnerabilities
16 OS Redhat Enterprise Linux Server Tus 7.6 Version Details Vulnerabilities
17 OS Redhat Enterprise Linux Workstation 6.0 Version Details Vulnerabilities
18 OS Redhat Enterprise Linux Workstation 7.0 Version Details Vulnerabilities

- Number Of Affected Versions By Product

Vendor Product Vulnerable Versions
Debian Debian Linux 2
Mercurial Mercurial 1
Redhat Enterprise Linux Desktop 2
Redhat Enterprise Linux Server 2
Redhat Enterprise Linux Server Aus 3
Redhat Enterprise Linux Server Eus 4
Redhat Enterprise Linux Server Tus 2
Redhat Enterprise Linux Workstation 2

- References For CVE-2017-9462

https://access.redhat.com/errata/RHSA-2017:1576
REDHAT RHSA-2017:1576
https://bugs.debian.org/861243 CONFIRM
https://lists.debian.org/debian-lts-announce/2018/07/msg00005.html
MLIST [debian-lts-announce] 20180705 [SECURITY] [DLA 1414-1] mercurial security update
https://security.gentoo.org/glsa/201709-18
GENTOO GLSA-201709-18
https://www.mercurial-scm.org/repo/hg/rev/77eaf9539499 CONFIRM
https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.1.3_.282017-4-18.29 CONFIRM
http://www.securityfocus.com/bid/99123
BID 99123 Mercurial CVE-2017-9462 Remote Code Execution Vulnerability Release Date:2017-07-24
http://www.debian.org/security/2017/dsa-3963
DEBIAN DSA-3963

- Metasploit Modules Related To CVE-2017-9462

Mercurial Custom hg-ssh Wrapper Remote Code Exec
This 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.
Module type : exploit Rank : excellent Platforms : Python


CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site. OVAL is a registered trademark of The MITRE Corporation and the authoritative source of OVAL content is MITRE's OVAL web site.
Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.