Skip to content
OpenAdvisories
Critical SUSE-SU-2018:1998-1 3 CVEs

Security update for mercurial

Published Jul 19, 2018 · Updated Feb 4, 2026

Summary

This update for mercurial fixes the following issues:

Security issues fixed:

- CVE-2018-13346: Fix mpatch_apply function in mpatch.c that incorrectly proceeds in cases where the fragment start is past the end of the original data (bsc#1100354).
- CVE-2018-13347: Fix mpatch.c that mishandles integer addition and subtraction (bsc#1100355).
- CVE-2018-13348: Fix the mpatch_decode function in mpatch.c that mishandles certain situations where there should be at least 12 bytes remaining after thecurrent position in the patch data (bsc#1100353).

Fixed packages 1

ReleasePackageFixed in
SUSE · SLES 15 Linux Enterprise Module for Development Tools 15 mercurial 4.5.2-3.3.1

Vulnerabilities 3

  • Critical 9.8

    Mercurial mishandles integer addition and subtraction

    mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.

  • High 7.5

    Mercurial Improper Input Validation vulnerability

    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.

  • High 7.5

    Mercurial Improper Input Validation vulnerability

    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.

References

  • report
    https://bugzilla.suse.com/1100353
  • report
    https://bugzilla.suse.com/1100354
  • report
    https://bugzilla.suse.com/1100355
  • web
    https://www.suse.com/security/cve/CVE-2018-13346
  • web
    https://www.suse.com/security/cve/CVE-2018-13347
  • web
    https://www.suse.com/security/cve/CVE-2018-13348