mercurial: Buffer underflow in mpatch.c:mpatch_apply()
Published Jul 6, 2018
9.3
CRITICALCVSS 4.0
EPSS 2.67%
Description
mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002.
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:H/VI:H/VA:H/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:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
AV:N/AC:L/Au:N/C:P/I:P/A:P
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 1, 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 1, 2026 | 2.67% (0.02665) | 85.20th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.64% (0.02643) | 83.56th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.56% (0.00561) | 77.90th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.56% (0.00561) | 76.99th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.56% (0.00561) | 74.64th | v3 (v2023.03.01) |
| Jun 29, 2023 | 0.80% (0.00797) | 79.25th | v3 (v2023.03.01) |
| May 8, 2023 | 0.65% (0.00645) | 76.21th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.45% (0.00454) | 71.30th | 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.25% (0.01247) | 30.57th | v1 |
| Jan 6, 2022 | 1.25% (0.01247) | 29.93th | v1 |
| Sep 1, 2021 | 1.25% (0.01247) | 68.62th | v1 |
| Apr 14, 2021 | 1.25% (0.01247) | 0.00th | v1 |
References (11)
- https://access.redhat.com/errata/RHSA-2019:2276 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-13347 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1594087 Issue Tracking
- https://github.com/advisories/GHSA-3mjj-mr4f-qxmx Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-89.yaml
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2018-13347
- https://www.cve.org/CVERecord?id=CVE-2018-13347
- https://www.mercurial-scm.org/repo/hg-committed/log?rev=modifies%28%22mercurial%2Fmpatch.c%22%29+and+4.5%3A%3A x_refsource_MISCPatchVendor Advisory
- https://www.mercurial-scm.org/repo/hg/rev/1acfc35d478c x_refsource_MISCPatchVendor Advisory
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29 x_refsource_MISCRelease NotesVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2019:2276 | vendor-advisoryx_refsource_REDHAT | |
| https://access.redhat.com/security/cve/CVE-2018-13347 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1594087 | Issue Tracking | |
| https://github.com/advisories/GHSA-3mjj-mr4f-qxmx | Advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-89.yaml | ||
| https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html | mailing-listx_refsource_MLIST | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-13347 | ||
| https://www.cve.org/CVERecord?id=CVE-2018-13347 | ||
| https://www.mercurial-scm.org/repo/hg-committed/log?rev=modifies%28%22mercurial%2Fmpatch.c%22%29+and+4.5%3A%3A | x_refsource_MISCPatchVendor Advisory | |
| https://www.mercurial-scm.org/repo/hg/rev/1acfc35d478c | x_refsource_MISCPatchVendor Advisory | |
| https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29 | x_refsource_MISCRelease NotesVendor Advisory |
Change history (0)
No recorded changes yet.