mercurial: Improper length check in mpatch.c
Published Jul 6, 2018
8.7
HIGHCVSS 4.0
EPSS 2.10%
Description
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.
Affected products
No data.
No data.
Red Hat Ansible Tower 3
mercurial
Not affected
Red Hat Enterprise Linux 6
mercurial
Not affected
Red Hat Enterprise Linux 7
mercurial
Not affected
Red Hat Enterprise Linux 8
mercurial
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Ansible Tower 3 | mercurial | Not affected | n/a |
| Red Hat Enterprise Linux 6 | mercurial | Not affected | n/a |
| Red Hat Enterprise Linux 7 | mercurial | Not affected | 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 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 (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.10% (0.02104) | 81.05th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.09% (0.02087) | 79.07th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.15% (0.00147) | 51.17th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.15% (0.00147) | 49.75th | v3 (v2023.03.01) |
| Jun 29, 2023 | 0.16% (0.00162) | 51.81th | v3 (v2023.03.01) |
| May 8, 2023 | 0.15% (0.00155) | 50.36th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.14% (0.00140) | 47.96th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.95% (0.00954) | 36.37th | v2 (v2022.01.01) |
| Sep 2, 2022 | 0.95% (0.00954) | 34.50th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.95% (0.00954) | 32.50th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.95% (0.00954) | 16.28th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.83% (0.00833) | 24.58th | v1 |
| Jan 6, 2022 | 0.83% (0.00833) | 23.96th | v1 |
| Sep 1, 2021 | 0.83% (0.00833) | 57.50th | v1 |
| Apr 14, 2021 | 0.83% (0.00833) | 0.00th | v1 |
References (9)
- https://access.redhat.com/security/cve/CVE-2018-13348 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1594083 Issue Tracking
- https://github.com/advisories/GHSA-3v62-ww8w-758m Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-90.yaml
- https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2018-13348
- https://www.cve.org/CVERecord?id=CVE-2018-13348
- https://www.mercurial-scm.org/repo/hg/rev/90a274965de7 x_refsource_MISCPatchVendor Advisory
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29 x_refsource_MISCVendor Advisory
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2018-13348 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1594083 | Issue Tracking | |
| https://github.com/advisories/GHSA-3v62-ww8w-758m | Advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-90.yaml | ||
| https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html | mailing-listx_refsource_MLIST | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-13348 | ||
| https://www.cve.org/CVERecord?id=CVE-2018-13348 | ||
| https://www.mercurial-scm.org/repo/hg/rev/90a274965de7 | x_refsource_MISCPatchVendor Advisory | |
| https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29 | x_refsource_MISCVendor Advisory |
Change history (0)
No recorded changes yet.