ID:1804 - Exploit for Remote code execution in Mercurial - CVE-2017-9462

 
Main Vulnerability Database Exploits ID:1804 - Exploit for Remote code execution in Mercurial - CVE-2017-9462

ID:1804 - Exploit for Remote code execution in Mercurial - CVE-2017-9462

Published: March 18, 2020


Vulnerability identifier: #VU7220
Vulnerability risk: High
CVE-ID: CVE-2017-9462
CWE-ID: CWE-20
Exploitation vector: Remote access
Vulnerable software:
Mercurial

Link to public exploit:


Vulnerability description

The vulnerability allows a remote authenticated attacker to execute arbitrary code on the target system.

The weakness exists due to improper input validation in "hg serve --stdio". A remote attacker can use --debugger as a repository name and consequently execute arbitrary code with privileges of the current user.

Successful exploitation of the vulnerability may result in system compromise.

Remediation

Update to version 4.1.3 or later.