Vulnerabilityin Apache CXF.
Proof of concept public (GitHub).
It is possible to configure Apache CXF to use the com.sun.net.ssl implementation via 'System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");'. When this system property is set, CXF uses some reflection to try to make the HostnameVerifier work with the old com.sun.net.ssl.HostnameVerifier interface. However, the default HostnameVerifier implementation in CXF does not implement the method in this interface, and an exception is thrown. However, in Apache CXF prior to 3.2.5 and 3.1.16 the exception is caught in the reflection code and not properly propagated. What this means is that if you are using the com.sun.net.ssl stack with CXF, an error with TLS hostname verification will not be thrown, leaving a CXF client subject to man-in-the-middle attacks.
- Upgrade org.apache.cxf:cxf-rt-transports-http (Maven) to 3.1.16, 3.2.5 or later, whichever matches your release line.
- Upgrade org.apache.cxf:apache-cxf (Maven) to 3.1.16, 3.2.5 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 9 Mar 2018CVE ID reserved by apache.
- 2 Jul 2018Published in the CVE List.
- 19 Nov 2018First public proof of concept on GitHub.
- 17 Sep 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: Proof of concept (GitHub).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other CXF vulnerabilities
- github.com x_refsource_CONFIRM
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- lists.apache.org mailing-list, x_refsource_MLIST
- www.securityfocus.com vdb-entry, x_refsource_BID
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- cxf.apache.org x_refsource_CONFIRM
- www.securitytracker.com vdb-entry, x_refsource_SECTRACK
- access.redhat.com vendor-advisory, x_refsource_REDHAT
- www.oracle.com x_refsource_MISC
- www.oracle.com x_refsource_MISC
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- www.oracle.com x_refsource_MISC
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
- lists.apache.org mailing-list, x_refsource_MLIST
Patchminder. CVE-2018-8039: Vulnerability in Apache CXF. https://patchminder.com/cve/cve-2018-8039/ (accessed 5 December 2026).