CVE-2012-5786 Security feature bypass in n/a
Man-in-the-middle attackers can spoof SSL servers in Apache CXF sample code due to missing hostname verification, bypassing certificate validation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2012-5786?
CVE-2012-5786 is a medium-severity vulnerability in Apache Cxf, published on 4 Nov 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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
Weakness: CWE-20
Which versions are affected by CVE-2012-5786?
It affects 1 product.
Products include Apache Cxf.
How do I fix CVE-2012-5786?
No fix has been published for CVE-2012-5786 yet. Limit exposure of the affected software until one is available.
Is CVE-2012-5786 being exploited?
There is no known exploitation of CVE-2012-5786 in the wild and no public exploit code.
Other vulnerabilities in Apache Cxf
- CVE-2012-2379 XML Signature/Encryption Not Validated in Apache CXF
- CVE-2026-66909 Apache CXF: Unsafe deserialization of inbound JMS ObjectMessage
- CVE-2026-68079 Apache CXF: DefaultEncryptingCodeDataProvider allows unlimited authorization code replay
- CVE-2026-50628 Apache CXF: OAuth2: Inverted IP Binding Check Defeats Security Control
- CVE-2025-48913 Apache CXF: Untrusted JMS configuration can lead to RCE
Sources
Also known as GHSA-4267-v6qh-xchc.