CVE-2018-13348: Mercurial

High severity, CVSS 7.5. EPSS: 2.1% probability of exploitation activity in the next 30 days.

The mpatch_decode function in mpatch.c in Mercurial before 4.6.1 mishandles certain situations where there should be at least 12 bytes remaining after the current position in the patch data, but actually are not, aka OVE-20180430-0001.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Mercurial, before 4.6.1: fixed in 4.6.1

Affected products

Affected packages

Published 2018-07-06. Last modified 2026-06-17.