apache/libcloud · Security
Apache Libcloud vulnerable to certificate impersonation
- GHSA ID
- GHSA-prcq-52f8-fp44
- CVE ID
- CVE-2012-3446
- Severity
- medium
- Published
- Updated
- CVSS
- 5.9 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- CVSS v3
- 5.9 · CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Description
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.
CWEs
- CWE-20 · Improper Input Validation
- CWE-185 · Incorrect Regular Expression
- CWE-295 · Improper Certificate Validation
References
- https://nvd.nist.gov/vuln/detail/CVE-2012-3446 ↗
- https://svn.apache.org/repos/asf/libcloud/trunk/CHANGES ↗
- http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf ↗
- https://github.com/apache/libcloud/commit/f2af5502dae3ac63e656dd1b7d5f29cc82ded401 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/apache-libcloud/PYSEC-2012-12.yaml ↗
- https://github.com/advisories/GHSA-prcq-52f8-fp44 ↗