Loading
Apache Axis2/Java 1.6.2 and earlier does not verify that 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 an arbitrary valid certificate.
Use CWE-20, Apache vendor hub and Axis2 product page to widen CVE-2012-5785 into its surrounding weakness, vendor, and product context.
Compare it with CVE-2010-0219, CVE-2010-1632 and CVE-2012-5351 for nearby disclosures in the same product family.