{"id":"CVE-2018-13348","published":"2018-07-06T00:00:00Z","modified":"2024-08-05T09:00:35Z","title":"The mpatch_decode function in mpatch.c in Mercurial before 4.6.1 mishandles certain situations where there should be…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02145,"percentile":0.82524,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.mercurial-scm.org/repo/hg/rev/90a274965de7","tags":["x_refsource_MISC"]},{"url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":16.5}]},"affected":[{"ecosystem":"PyPI","package":"mercurial","vulnerableRanges":["<4.6.1"],"patched":["4.6.1"],"from":["GHSA-3v62-ww8w-758m","PYSEC-2018-90"],"provenance":"source"}],"summary":{"text":"The mpatch_decode function in mpatch.c in Mercurial before 4.6.1 fails to properly handle cases where at least 12 bytes should remain after the current position in patch data but do not.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:31Z"},"euvd":{"id":"EUVD-2018-0097","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-1000132","published":"2018-03-14","fixed":"4.5.1","kev":false,"link":{"from":"CVE-2018-1000132","to":"CVE-2018-13348","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},{"cve":"CVE-2019-3902","published":"2019-04-22","fixed":"4.9","kev":false}],"package":"PyPI:mercurial"}}