CVE-2018-13346: Input Validation

Published Jun 22, 2018
·
Updated

Mercurial before version 4.6.1 has a missing check for fragment start position in mpatch.c:mpatchapply()

Upstream Changelog:

https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial4.6.1.282018-06-06.29

Upstream Patch:

https://www.mercurial-scm.org/repo/hg/rev/faa924469635

Other sources

The mpatchapply 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.

GitHub

The mpatchapply 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.

MITRE

Affected Software

3 affected componentsFixes available
redhat/mercurial<4.6.1
4.6.1
pip/mercurial<4.6.1
4.6.1
Mercurial Mercurial<4.6.1

Event History

Jul 6, 2018
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
May 13, 2022
Advisory Published
via GitHub·01:24 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2018-13346?

CVE-2018-13346 is a vulnerability in Mercurial before 4.6.1 that allows the mpatch_apply function in mpatch.c to incorrectly proceed in cases where the fragment start is past the end of the original data.

2

What is the severity of CVE-2018-13346?

The severity of CVE-2018-13346 is high, with a CVSS score of 7.5.

3

Which software versions are affected by CVE-2018-13346?

Versions of Mercurial before 4.6.1 are affected by CVE-2018-13346.

4

How can I fix CVE-2018-13346?

To fix CVE-2018-13346, update Mercurial to version 4.6.1 or later.

5

Where can I find more information about CVE-2018-13346?

More information about CVE-2018-13346 can be found at the following references: [Link 1](https://access.redhat.com/errata/RHSA-2019:2276), [Link 2](https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html), [Link 3](https://www.mercurial-scm.org/repo/hg/rev/faa924469635).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2018-13346 - Input Validation - SecAlerts