{"id":"CVE-2018-13346","published":"2018-07-06T00:00:00Z","modified":"2024-08-05T09:00:35Z","title":"The mpatch_apply function in mpatch.c in Mercurial before 4.6.1 incorrectly proceeds in cases where the fragment start…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02365,"percentile":0.84201,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29","tags":["x_refsource_MISC"]},{"url":"https://www.mercurial-scm.org/repo/hg/rev/faa924469635","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/errata/RHSA-2019:2276","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":16.8,"factors":[{"name":"EPSS percentile","points":16.84}]},"affected":[{"ecosystem":"PyPI","package":"mercurial","vulnerableRanges":["<4.6.1"],"patched":["4.6.1"],"from":["GHSA-9xv4-r2hf-26gh","PYSEC-2018-88"],"provenance":"source"}],"summary":{"text":"The mpatch_apply function in mpatch.c in Mercurial before 4.6.1 fails to stop processing when a fragment's start position lies beyond the end of the original data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:11Z"},"euvd":{"id":"EUVD-2018-0095","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2017-1000115","published":"2017-10-04","fixed":"4.3.1","kev":false},{"cve":"CVE-2017-17458","published":"2017-12-07","fixed":"4.4.1","kev":false},{"cve":"CVE-2018-1000132","published":"2018-03-14","fixed":"4.5.1","kev":false,"link":{"from":"CVE-2018-1000132","to":"CVE-2018-13346","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:mercurial","fromFixed":"4.5.1","toFixed":"4.6.1","daysApart":114}]}},{"cve":"CVE-2018-13346","published":"2018-07-06","fixed":"4.6.1","kev":false},{"cve":"CVE-2018-13347","published":"2018-07-06","fixed":"4.6.1","kev":false},{"cve":"CVE-2018-13348","published":"2018-07-06","fixed":"4.6.1","kev":false},{"cve":"CVE-2018-17983","published":"2018-10-04","fixed":"4.7.2","kev":false}],"package":"PyPI:mercurial"}}