Integer Overflow or Wraparound Affecting mercurial package, versions [,4.6.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (63rd 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 IDSNYK-PYTHON-MERCURIAL-1570185
  • published27 Aug 2021
  • disclosed6 Jul 2018
  • creditUnknown

Introduced: 6 Jul 2018

CVE-2018-13347  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade mercurial to version 4.6.1 or higher.

Overview

mercurial is a distributed SCM tool written in Python.

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. mpatch.c in Mercurial mishandles integer addition and subtraction.

CVSS Base Scores

version 3.1