CVE catalog

CVE-2018-13346

mercurial: CVE-2018-13346

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
Published
Source
[NVD] · [CVE record]
EPSS
2.36% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianmercurialsid7.2.4-2fixed
Debianmercurialforky7.2.4-2fixed
Debianmercurialtrixie7.0.1-2fixed
Debianmercurialbookworm6.3.2-1+deb12u1fixed
Debianmercurialbookworm-security6.3.2-1+deb12u1fixed
Susemercuriallinux enterprise module for development tools 154.5.2-3.3.1fixed
Susemercuriallinux enterprise software development kit 11 sp42.3.2-0.18.9.1fixed
Susemercuriallinux enterprise software development kit 12 sp32.8.2-15.13.1fixed
Ubuntumercurial14.042.6.3-1vulnerable
Ubuntumercurial14.042.7.2-1vulnerable
Ubuntumercurial14.042.8.1-2vulnerable
Ubuntumercurial14.042.8.2-1ubuntu1vulnerable
Ubuntumercurial14.042.8.2-1ubuntu1.3vulnerable
Ubuntumercurial14.042.8.2-1ubuntu1.4fixed
Ubuntumercurial16.043.4-1ubuntu2vulnerable
Ubuntumercurial16.043.6.2-1ubuntu2vulnerable
Ubuntumercurial16.043.7.3-1ubuntu1vulnerable
Ubuntumercurial16.043.7.3-1ubuntu1.1fixed
Ubuntumercurial18.044.3.1-2vulnerable
Ubuntumercurial18.044.5-1ubuntu1vulnerable
Ubuntumercurial18.044.5.2-0ubuntu2vulnerable
Ubuntumercurial18.044.5.3-1ubuntu2vulnerable
Ubuntumercurial18.044.5.3-1ubuntu2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianmercurialsourcesid4.6.1-1not yet assignedNot reported[901050]
Debianmercurialsourceforky4.6.1-1not yet assignedNot reported[901050]
Debianmercurialsourcetrixie4.6.1-1not yet assignedNot reported[901050]
Debianmercurialsourcebookworm4.6.1-1not yet assignedNot reported[901050]
Susemercurialrpmlinux enterprise module for development tools 154.5.2-3.3.1Not reportedSUSE-SU-2018:1998-1Not reported
Susemercurialrpmlinux enterprise software development kit 11 sp42.3.2-0.18.9.1Not reportedSUSE-SU-2018:1996-1Not reported
Susemercurialrpmlinux enterprise software development kit 12 sp32.8.2-15.13.1Not reportedSUSE-SU-2018:1990-1Not reported
Ubuntumercurialdeb14.042.8.2-1ubuntu1.4Not reportedUBUNTU-CVE-2018-13346Not reported
Ubuntumercurialdeb16.043.7.3-1ubuntu1.1Not reportedUBUNTU-CVE-2018-13346Not reported
Ubuntumercurialdeb18.044.5.3-1ubuntu2.1Not reportedUBUNTU-CVE-2018-13346Not reported

[Debian bug #901050]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [mercurial]Fixed
    Details (4)
    • 6.3.2-1+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12

    • 6.3.2-1+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12

    • 6.3.2-1+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12

    • 6.3.2-1+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12

  • Source package: [mercurial]

    Details (4)
    • 6.3.2-1+deb12u1 · all · bookworm

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12

    • 6.3.2-1+deb12u1 · all · bookworm

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12

    • 6.3.2-1+deb12u1 · all · bookworm-security

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12

    • 6.3.2-1+deb12u1 · all · bookworm-security

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · bookworm; dsa · mercurial · debian · 12

[Debian 13 (Trixie)]

  • [mercurial]Fixed
    Details (2)
    • 7.0.1-2 · amd64 · trixie

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · 13

    • 7.0.1-2 · arm64 · trixie

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · 13

  • Source package: [mercurial]

    Details (2)
    • 7.0.1-2 · all · trixie

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · 13

    • 7.0.1-2 · all · trixie

      Fixed · Fixed: 4.6.1-1

      dsa · mercurial · debian · 13

Observed:

References