CVE-2012-3446: Apache Libcloud vulnerable to certificate impersonation
5.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.55862%
CWE
Published
5/17/2022
Updated
9/5/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 |
|---|---|---|---|
| apache-libcloud | pip | < 0.11.1 | 0.11.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the regex pattern in _verify_hostname() that validated certificate hostnames. The original regex didn't use ^/$ anchors, allowing subdomains/suffixes to match incorrectly (e.g., 'evil.example.com' matching '*.com'). The commit f2af550 explicitly adds these anchors to the regex in this function, and the accompanying test cases demonstrate stricter validation. The CWE-185 (regex) and CWE-295 (cert validation) mappings directly align with this function's flawed implementation.