Exploit database

Vulnerability

CVE-2017-9462

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · NVD

Vector string

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

Description

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.

CVE Program

Exploit source choices

1 source
Mercurial Custom hg-ssh Wrapper Remote Code Exec
MSF-linux--ssh--mercurial_ssh_execMetasploitPython / remotePreferred

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.

2017-04-18mercurial_ssh_exec.rb