Out-of-Bounds Write Affecting mercurial package, versions [,4.6.1)


0.0
high

Snyk CVSS

    Attack Complexity Low
    Integrity High

    Threat Intelligence

    EPSS 0.17% (55th percentile)
Expand this section
NVD
7.5 high
Expand this section
SUSE
5.3 medium
Expand this section
Red Hat
4.3 medium

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 ID SNYK-PYTHON-MERCURIAL-1570183
  • published 27 Aug 2021
  • disclosed 6 Jul 2018
  • credit Unknown

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 Out-of-Bounds Write. The mpatch_apply function in mpatch.c in Mercurial before 4.6.1 incorrectly proceeds in cases where the fragment start is past the end of the original data.