CVE-2016-3630: Mercurial arbitrary code execution vulnerability
8.8
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.89371%
CWE
-
Published
5/14/2022
Updated
9/24/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
mercurial | pip | < 3.7.3 | 3.7.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from Mercurial's binary delta decoder. Two critical commits (b6ed2505d6cf and b9714d958e89) address issues in the fixws()
function within bdiff.c
. The first fixes malloc(0)
undefined behavior, the second prevents integer overflow via calloc
. These flaws allowed attackers to trigger heap overflows via malicious clone/push/pull operations by exploiting list sizing rounding errors and short records in delta processing.