CVE-2012-5786 Security feature bypass in n/a

Medium 5.8 Published Updated

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.

All Apache Cxf vulnerabilities

Sources

Also known as GHSA-4267-v6qh-xchc.

Is CVE-2012-5786 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free