{"id":"CVE-2018-13347","aliases":["GHSA-3mjj-mr4f-qxmx","PYSEC-2018-89"],"url":"https://o3.security/vulnerability/CVE-2018-13347","summary":"Mercurial mishandles integer addition and subtraction","details":"mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.","published":"2018-07-06T00:29:00.297Z","modified":"2026-04-16T06:17:55.395234921Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"mercurial","fixedVersion":"4.6.1"}],"fix":null,"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2276"},{"type":"ADVISORY","url":"https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29"},{"type":"FIX","url":"https://www.mercurial-scm.org/repo/hg-committed/log?rev=modifies%28%22mercurial%2Fmpatch.c%22%29+and+4.5%3A%3A"},{"type":"FIX","url":"https://www.mercurial-scm.org/repo/hg/rev/1acfc35d478c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-13347"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-89.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-04-16T06:17:55.395234921Z"}}