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


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.93% (83rd 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-1570418
  • published27 Aug 2021
  • disclosed7 Dec 2017
  • creditUnknown

Introduced: 7 Dec 2017

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

How to fix?

Upgrade mercurial to version 4.4.1 or higher.

Overview

mercurial is a distributed SCM tool written in Python.

Affected versions of this package are vulnerable to Arbitrary Code Execution. It is possible that a specially malformed repository can cause Git subrepositories to run arbitrary code in the form of a .git/hooks/post-update script checked into the repository. Typical use of Mercurial prevents construction of such repositories, but they can be created programmatically.

CVSS Scores

version 3.1