CVE-2018-13346: Mercurial Improper Input Validation vulnerability

CVE-2018-13346 · Severity: low · CVSS 3 · Published 2018-07-06

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, aka OVE-20180430-0004.

Technologies: mercurial (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2018-13346 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2018-13346 being exploited in the wild.
How severe is CVE-2018-13346?
Low severity, with a CVSS score of 3, published 6 July 2018.
Which products and versions are affected?
mercurial (PyPI) ECOSYSTEM:introduced=0,fixed=4.6.1.
Is there a fix for CVE-2018-13346?
Yes. mercurial (PyPI): upgrade to 4.6.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2018-13346?
Check whether you run mercurial (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • mercurial (PyPI): upgrade to 4.6.1 or later
    pip install "mercurial>=4.6.1"

Affected products

  • mercurial (PyPI) ECOSYSTEM:introduced=0,fixed=4.6.1

Identifiers

  • CVE-2018-13346
  • GHSA-9xv4-r2hf-26gh
  • PYSEC-2018-88

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.