What’s Vulnerable › Vulnerabilities
CVE-2012-5786
- Severity: medium (CVSS 5.8 v2.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2012-11-04 · updated 2026-06-16
- Weakness: CWE-20
Description
The wsdl_first_https sample code in distribution/src/main/release/samples/wsdl_first_https/src/main/ in Apache CXF before 2.7.0 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. NOTE: The vendor states that the sample had specifically used a flag to bypass the DN check
Affected products
- Apache Software Foundation Apache CXF: through 2.6.17
References
- http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf
- https://exchange.xforce.ibmcloud.com/vulnerabilities/79983
- http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf
- https://exchange.xforce.ibmcloud.com/vulnerabilities/79983
Get alerted when CVE-2012-5786 or the next vulnerability affects your stack