CVE-2018-13347

mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002

published July 6, 2018

CVSS
โ€”
EPSS
3%
Percentile
85.6
In the wild
Unconfirmed
What it is

โš ๏ธ A subtle mishap in Mercurial's mpatch.c could allow integer math to go haywire! ๐Ÿ’ก Think of it like a restaurant that incorrectly calculates the total on your bill โ€“ a mere miscalculation can lead to overcharging or undercharging, causing confusion for both the customer and the cashier. While there are no known exploits for this issue, if an attacker were to exploit the mishandled integer operations, they could potentially manipulate the functionality of Mercurial, leading to unexpected behavior in version control operations.

Put simply

Think of it like a restaurant that incorrectly calculates the total on your bill โ€“ a mere miscalculation can lead to overcharging or undercharging, causing confusion for both the customer and the cashier. This vulnerability in Mercurial versions prior to 4.6.1 stems from improper handling of integer addition and subtraction in mpatch.c, which could allow for erroneous calculations during data processing.

What to do

While there are no known exploits for this issue, if an attacker were to exploit the mishandled integer operations, they could potentially manipulate the functionality of Mercurial, leading to unexpected behavior in version control operations. Upgrade to Mercurial version 4.6.1 or later to patch this vulnerability. Additionally, review your current implementation and test for any unexpected behaviors caused by integer computations. You've got this! By updating and ensuring your version is secure, you're one step closer to protecting your projects. ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02665 ยท 85.6th percentile
Published
2018-07-06T00:00Z
EPSS history
Timeline
  • 06 JUL 00:00Z
    mpatch.c in Mercurial before 4.6.1 mishandles integer addition and subtraction, aka OVE-20180430-0002
    cvelistv5