Live threats

All CVEs / Mercurial

CVE-2018-13346Mercurial

High 7.5 No auth needed

Priority
60
CVSS 3.0
7.5
EPSS
2.4%
probability of exploitation in 30 days · percentile 85
Auth required
No
Published
Jul 6, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Mercurial.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI mercurial < 4.6.1 4.6.1 pip install "mercurial>=4.6.1"
PyPI mercurial < 4.6.1 4.6.1 pip install "mercurial>=4.6.1"

Per OSV / GitHub Advisories (GHSA-9xv4-r2hf-26gh, PYSEC-2018-88). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mercurialmercurial< 4.6.1

Official sources

References

Links published by the sources. Open them with care.