Mercurial up to 4.6.0 mpatch.c mpatch_apply input validation

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.

A vulnerability was found in Mercurial up to 4.6.0. It has been classified as critical. Affected is the function mpatch_apply of the file mpatch.c. The manipulation with an unknown input leads to a input validation vulnerability. CWE is classifying the issue as CWE-20. The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. This is going to have an impact on integrity.

The bug was discovered 06/06/2018. The weakness was published 07/06/2018 (Website). The advisory is shared for download at This vulnerability is traded as CVE-2018-13346 since 07/05/2018. The exploitability is told to be easy. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. There are known technical details, but no exploit is available.

The vulnerability was handled as a non-public zero-day exploit for at least 29 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 111192 (openSUSE Security Update : mercurial (openSUSE-2018-734)), which helps to determine the existence of the flaw in a target environment. It is assigned to the family SuSE Local Security Checks and running in the context l. The commercial vulnerability scanner Qualys is able to test this issue with plugin 171370 (OpenSUSE Security Update for mercurial (openSUSE-SU-2018:2023-1)).

Upgrading to version 4.6.1 eliminates this vulnerability. A possible mitigation has been published 2 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (111192). Similar entries are available at 120481 and 120482.



CPE 2.3info

CPE 2.2info


VulDB Meta Base Score: 7.5
VulDB Meta Temp Score: 7.3

VulDB Base Score: 7.5
VulDB Temp Score: 7.2
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.5
NVD Vector: 🔍



VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍


Class: Input validation
ATT&CK: Unknown

Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍


Nessus ID: 111192
Nessus Name: openSUSE Security Update : mercurial (openSUSE-2018-734)
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

Qualys ID: 🔍
Qualys Name: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍


Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Upgrade: Mercurial 4.6.1


06/06/2018 🔍
07/05/2018 +28 days 🔍
07/05/2018 +0 days 🔍
07/06/2018 +1 days 🔍
07/06/2018 +0 days 🔍
07/19/2018 +13 days 🔍
07/20/2018 +1 days 🔍
04/03/2023 +1718 days 🔍


Advisory: RHSA-2019:2276
Status: Not defined

CVE: CVE-2018-13346 (🔍)
See also: 🔍


Created: 07/06/2018 10:11 PM
Updated: 04/03/2023 07:31 PM
Changes: 07/06/2018 10:11 PM (73), 02/26/2020 09:24 AM (2), 04/03/2023 07:31 PM (4)
Complete: 🔍


No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!