CVE-2010-4237: Mercurial Improper Certificate Validation vulnerability
5.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.53461%
CWE
Published
4/21/2022
Updated
5/2/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
mercurial | pip | < 1.6.4 | 1.6.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from missing Common Name validation in SSL certificate checks. The commit f2937d6492c5 introduced the _verifycert function to validate the certificate's Common Name and integrated it into the BetterHTTPS.connect method. Prior to this fix, the connect method in mercurial/url.py did not include these checks, leaving the system vulnerable. The CVE description explicitly cites improper Common Name validation, which aligns with the absence of _verifycert in the vulnerable versions.