patchminder
Proof of concept · GitHub CVE-2018-8039

Vulnerabilityin Apache CXF.

Published 2 Jul 2018 · Updated 17 Sep 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
High 8.1
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 8.2% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 3.1.16, 3.2.5
In plain words

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.

What to do now
  • 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.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Apache CXF
Not confirmed
Not confirmed
CVE record
org.apache.cxf:cxf-rt-transports-http (Maven)
3.2.0 to before 3.2.5
3.2.5
GitHub advisory
org.apache.cxf:cxf-rt-transports-http (Maven)
before 3.1.16
3.1.16
GitHub advisory
org.apache.cxf:apache-cxf (Maven)
3.2.0 to before 3.2.5
3.2.5
GitHub advisory
org.apache.cxf:apache-cxf (Maven)
before 3.1.16
3.1.16
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 9 Mar 2018
    CVE ID reserved by apache.
  2. 2 Jul 2018
    Published in the CVE List.
  3. 19 Nov 2018
    First public proof of concept on GitHub.
  4. 17 Sep 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub).

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
1 repository
GitHubno warning signs foundtafamace/CVE-2018-80390 stars · created 19 Nov 2018

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.

Related

Other CXF vulnerabilities

References
Cite this page

Patchminder. CVE-2018-8039: Vulnerability in Apache CXF. https://patchminder.com/cve/cve-2018-8039/ (accessed 5 December 2026).