# CVE-2012-5786

- Priority: **Routine**
- Reason: Not severe (CVSS 5.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2012-11-04 · Modified: 2024-08-06
- Record: https://cvemate.com/vulnerability/CVE-2012-5786 · JSON: https://cvemate.com/vulnerability/CVE-2012-5786/json

## Description

```text
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
```

## Signals

- CVSS: 5.8 medium (v2.0, NVD) AV:N/AC:M/Au:N/C:P/I:P/A:N
- EPSS: 1.084%, percentile 66.358%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache cxf: ≤ 2.6.17

## References

- <https://exchange.xforce.ibmcloud.com/vulnerabilities/79983>
- <http://www.cs.utexas.edu/~shmat/shmat_ccs12.pdf>

---

Data as of 2026-12-05T10:22:42.055Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
