# CVE-2012-3446: Apache Libcloud vulnerable to certificate impersonation

Source: https://junglewise.ai/threats/cve-2012-3446-apache-libcloud-vulnerable-to-certificate-impersonation  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2012-11-04  
License: CC BY 4.0 with a link back

CVE-2012-3446 · Severity: low · CVSS 3.1 · Published 2012-11-04

Apache Libcloud before 0.11.1 uses an incorrect regular expression during verification of whether the server hostname matches a domain name in the subject's Common Name (CN) or subjectAltName field of the X.509 certificate, which allows man-in-the-middle attackers to spoof SSL servers via a crafted certificate.

Technologies: [apache-libcloud (PyPI)](https://junglewise.ai/threats/technologies/apache-libcloud). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2012-3446 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2012-3446 being exploited in the wild.

**How severe is CVE-2012-3446?** Low severity, with a CVSS score of 3.1, published 4 November 2012.

**Which products and versions are affected?** apache-libcloud (PyPI) ECOSYSTEM:introduced=0,fixed=0.11.1.

**Is there a fix for CVE-2012-3446?** Yes. apache-libcloud (PyPI): upgrade to 0.11.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2012-3446?** Check whether you run apache-libcloud (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- apache-libcloud (PyPI): upgrade to 0.11.1 or later

  ```sh
  pip install "apache-libcloud>=0.11.1"
  ```


## Affected products

- apache-libcloud (PyPI) ECOSYSTEM:introduced=0,fixed=0.11.1

## Identifiers

- CVE-2012-3446
- GHSA-prcq-52f8-fp44
- PYSEC-2012-12

## Related threats

- [Libcloud does not properly scrub data when destroying a DigitalOcean node](https://junglewise.ai/threats/cve-2013-6480-libcloud-does-not-properly-scrub-data-when-destroying-a)
- [Apache Libcloud does not verify SSL certificates for HTTPS connections](https://junglewise.ai/threats/cve-2010-4340-apache-libcloud-does-not-verify-ssl-certificates-for-https)
