mercurial: Missing check for fragment start position in mpatch.c:mpatch_apply()
Published Jul 6, 2018
8.7
HIGHCVSS 4.0
EPSS 2.36%
Description
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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 7
mercurial-0:2.6.2-10.el7
Fixed · RHSA-2019:2276
Red Hat Enterprise Linux 6
mercurial
Will not fix
Red Hat Enterprise Linux 8
mercurial
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | mercurial-0:2.6.2-10.el7 | Fixed | RHSA-2019:2276 |
| Red Hat Enterprise Linux 6 | mercurial | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | mercurial | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
AV:N/AC:L/Au:N/C:N/I:P/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (16 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 2.36% (0.02356) | 83.14th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.34% (0.02337) | 81.31th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.17% (0.00174) | 55.03th | v3 (v2023.03.01) |
| Nov 26, 2023 | 0.17% (0.00174) | 54.54th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.15% (0.00153) | 50.65th | v3 (v2023.03.01) |
| Jun 29, 2023 | 0.26% (0.00264) | 62.78th | v3 (v2023.03.01) |
| May 8, 2023 | 0.34% (0.00339) | 67.00th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.20% (0.00197) | 55.82th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Sep 10, 2022 | 1.02% (0.01018) | 38.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.02% (0.01018) | 36.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.04% (0.01040) | 28.32th | v1 |
| Jan 6, 2022 | 1.04% (0.01040) | 27.69th | v1 |
| Sep 1, 2021 | 1.04% (0.01040) | 64.49th | v1 |
| Apr 14, 2021 | 1.04% (0.01040) | 0.00th | v1 |
References (10)
- https://access.redhat.com/errata/RHSA-2019:2276 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-13346 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1594090 Issue Tracking
- https://github.com/advisories/GHSA-9xv4-r2hf-26gh Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-88.yaml
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2018-13346
- https://www.cve.org/CVERecord?id=CVE-2018-13346
- https://www.mercurial-scm.org/repo/hg/rev/faa924469635 x_refsource_MISCPatchThird Party Advisory
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29 x_refsource_MISCThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2019:2276 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2018-13346 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1594090 | Issue Tracking | |
| https://github.com/advisories/GHSA-9xv4-r2hf-26gh | Advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-88.yaml | ||
| https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html | mailing-listx_refsource_MLIST | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-13346 | ||
| https://www.cve.org/CVERecord?id=CVE-2018-13346 | ||
| https://www.mercurial-scm.org/repo/hg/rev/faa924469635 | x_refsource_MISCPatchThird Party Advisory | |
| https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29 | x_refsource_MISCThird Party Advisory |
Change history (0)
No recorded changes yet.