CVE-2018-13346

HIGH

Mercurial < 4.6.1 - Denial of Service via mpatch_apply Fragment Start Validation

Title source: llm
STIX 2.1

Description

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.

References (4)

Core 4
Core References
Patch, Third Party Advisory x_refsource_misc
https://www.mercurial-scm.org/repo/hg/rev/faa924469635
Vendor Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2019:2276
Mailing List mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html

Scores

CVSS v3 7.5
EPSS 0.0234
EPSS Percentile 81.5%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Details

CWE
CWE-20
Status published
Products (2)
mercurial/mercurial < 4.6.1
pypi/mercurial 0 - 4.6.1PyPI
Published Jul 06, 2018
Tracked Since Feb 18, 2026