CVE-2018-13348
mercurial: Improper length check in mpatch.c
Overview
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.0 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-20
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| PyPI | mercurial | <4.6.1 | 4.6.1 |
Open a package to see all its vulnerabilities.
Operating systems · 9 fixes
debian 5 releases · 1 package
fixed 5
mercurial
| Release | Package | Fixed in |
|---|---|---|
| 11 | mercurial | 4.6.1-1 |
| 12 | mercurial | 4.6.1-1 |
| 13 | mercurial | 4.6.1-1 |
| 14 | mercurial | 4.6.1-1 |
| 9 | mercurial | 4.0-1+deb9u2 |
echo 1 release · 1 package
fixed 1
mercurial
| Release | Package | Fixed in |
|---|---|---|
| mercurial | 4.6.1-1 |
openSUSE 1 release · 1 package
fixed 1
mercurial
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | mercurial +2 | 5.9.1-2.1 | openSUSE-SU-2024:10586-1 |
ubuntu 2 releases · 1 package
fixed 2
mercurial
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | mercurial | 4.5.3-1ubuntu2.1 |
| 18.04-ESM | mercurial | 4.5.3-1ubuntu2.1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2018-13348
- github.com https://github.com/pypa/advisory-database/tree/main/vulns/mercurial/PYSEC-2018-90.yaml
- lists.debian.org https://lists.debian.org/debian-lts-announce/2020/07/msg00032.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2018-13348
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2018-13348
- www.mercurial-scm.org https://www.mercurial-scm.org/repo/hg/rev/90a274965de7
- www.mercurial-scm.org https://www.mercurial-scm.org/wiki/WhatsNew#Mercurial_4.6.1_.282018-06-06.29
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.