Arbitrary Code Execution Affecting mercurial package, versions [,4.1.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.99% (84th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MERCURIAL-42106
  • published28 May 2018
  • disclosed6 Jun 2017
  • creditUnknown

Introduced: 6 Jun 2017

CVE-2017-9462  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade mercurial to version 4.1.3 or higher.

Overview

mercurial Fast scalable distributed SCM (revision control, version control) system

Affected versions of this package are vulnerable to Arbitrary code Execution. The hg serve --stdio command allows remote authenticated users to launch the Python debugger, and consequently execute arbitrary code, by using --debugger flag as a repository name.

References

CVSS Scores

version 3.1