CVE-2018-13346
publishedmercurial: Missing check for fragment start position in mpatch.c:mpatch_apply()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | jessie | mercurial | Advisory build | 3.1.2-2+deb8u5 | DLA-1414-1 |
| Oracle Linux | 7 | emacs-mercurialaarch64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurialppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| SUSE / openSUSE | SLE-11-SP4 | mercuriali586 | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| Debian | stretch | mercurial | Advisory build | 4.0-1+deb9u2 | DLA-2293-1 |
| Oracle Linux | 7 | emacs-mercurialx86_64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | emacs-mercurial-elaarch64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
Show 49 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 7 | emacs-mercurial-elx86_64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | mercurialaarch64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | mercurialx86_64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | mercurial-hgkaarch64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Oracle Linux | 7 | mercurial-hgkx86_64 | Advisory build | 0:2.6.2-10.el7 | ELSA-2019-2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurialppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurials390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurialx86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurial-elppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurial-elppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurial-els390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | emacs-mercurial-elx86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurialppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurialppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurials390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurialsrc | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurialx86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-debuginfoppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-debuginfoppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-debuginfos390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-debuginfox86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-hgkppc64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-hgkppc64le | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-hgks390x | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| Red Hat Enterprise Linux | RHEL-7 | mercurial-hgkx86_64 | Advisory build | 2.6.2-10.el7 | RHSA-2019:2276 |
| SUSE / openSUSE | SLE-11-SP4 | mercurialia64 | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercurialppc64 | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercurials390x | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| SUSE / openSUSE | SLE-11-SP4 | mercurialx86_64 | Advisory build | 2.3.2-0.18.9.1 | SUSE-SU-2018:1996-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurialaarch64 | Advisory build | 2.8.2-15.13.1 | SUSE-SU-2018:1990-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurialppc64le | Advisory build | 2.8.2-15.13.1 | SUSE-SU-2018:1990-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurials390x | Advisory build | 2.8.2-15.13.1 | SUSE-SU-2018:1990-1 |
| SUSE / openSUSE | SLE-12-SP3 | mercurialx86_64 | Advisory build | 2.8.2-15.13.1 | SUSE-SU-2018:1990-1 |
| SUSE / openSUSE | SLE-15 | mercurialaarch64 | Advisory build | 4.5.2-3.3.1 | SUSE-SU-2018:1998-1 |
| SUSE / openSUSE | SLE-15 | mercurialppc64le | Advisory build | 4.5.2-3.3.1 | SUSE-SU-2018:1998-1 |
| SUSE / openSUSE | SLE-15 | mercurials390x | Advisory build | 4.5.2-3.3.1 | SUSE-SU-2018:1998-1 |
| SUSE / openSUSE | SLE-15 | mercurialx86_64 | Advisory build | 4.5.2-3.3.1 | SUSE-SU-2018:1998-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurialaarch64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurialppc64le | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurials390x | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurialx86_64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-langaarch64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-langppc64le | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-langs390x | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-langx86_64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-testsaarch64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-testsppc64le | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-testss390x | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | mercurial-testsx86_64 | Advisory build | 5.9.1-2.1 | OPENSUSE-SU-2024:10586-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
4- RHSA-2019:2276 https://access.redhat.com/errata/RHSA-2019:2276
- [debian-lts-announce] 20200731 [SECURITY] [DLA 2293-1] mercurial security update https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- https://www.mercurial-scm.org/repo/hg/rev/faa924469635
- https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 16a46c31daaf2bd58aab53c2ceb906621628a607d51ba4c678f13cdb0486a437
- Ingested
- 23 Sep 2026, 07:43:37 UTC
- Source record
- Official CVE record