CVE-2017-9462
HIGHMercurial < 4.1.3 - Authenticated Remote Code Execution via Debugger Repository Name
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2017-9462.
PoCs published by claudijd, including Metasploit module exploits/linux/ssh/mercurial_ssh_exec.
AI-analyzed exploit summary This Metasploit module exploits a vulnerability in Mercurial's custom hg-ssh wrapper by triggering a Python debugger session, allowing arbitrary Python code execution. It leverages SSH authentication with a private key to execute the payload.
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.
Exploits (1)
This Metasploit module exploits a vulnerability in Mercurial's custom hg-ssh wrapper by triggering a Python debugger session, allowing arbitrary Python code execution. It leverages SSH authentication with a private key to execute the payload.
References (8)
Scores
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H