CVE-2018-8039
It is possible to configure Apache CXF to use the com.sun.net.ssl implementation via 'System.setProperty("java.protocol.handler.pkgs",…
- Published
- Updated
- Reserved
- Assigned by
- apache
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | High8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 8.5% · top 4.9% of all CVEs (4 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Weakness
- Improper Validation of Certificate with Host Mismatch
- CWE-755 (opens in a new tab)All about CWE-755 and its CVEs
Affected products
Apache Software Foundation · Apache CXF
- affected prior to 3.1.16
- affected 3.2.x prior to 3.2.5
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.cxf:apache-cxfGHSA-jc7r-v6fg-2gpf (opens in a new tab)
- Mavenorg.apache.cxf:cxf-rt-transports-httpGHSA-jc7r-v6fg-2gpf (opens in a new tab)
References (24)
- https://github.com/apache/cxf/commit/fae6fabf9bd7647f5e9cb68897a7d72b545b741b (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2018:2428 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:3817 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:2643 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [cxf-user] 20180628 Apache CXF 3.2.6 and 3.1.16 are released (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 106357 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- RHSA-2018:2279 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:2424 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:2276 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:2423 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:2425 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2018:2277 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- http://cxf.apache.org/security-advisories.data/CVE-2018-8039.txt.asc?version=1&modificationDate=1530184663000&api=v2 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 1041199 (opens in a new tab)vdb-entryx_refsource_SECTRACKx_transferred
- RHSA-2018:3768 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.oracle.com/security-alerts/cpujan2020.html (opens in a new tab)x_refsource_MISCx_transferred
- [cxf-commits] 20200116 svn commit: r1055336 - in /websites/production/cxf/content: cache/main.pageCache security-advisories.data/CVE-2019-12423.txt.asc security-advisories.data/CVE-2019-17573.txt.asc security-advisories.html (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [cxf-commits] 20200319 svn commit: r1058035 - in /websites/production/cxf/content: cache/main.pageCache security-advisories.data/CVE-2019-17573.txt.asc security-advisories.html (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [cxf-commits] 20200401 svn commit: r1058573 - in /websites/production/cxf/content: cache/main.pageCache index.html security-advisories.data/CVE-2020-1954.txt.asc security-advisories.html (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.oracle.com/security-alerts/cpuapr2020.html (opens in a new tab)x_refsource_MISCx_transferred
- [cxf-commits] 20201112 svn commit: r1067927 - in /websites/production/cxf/content: cache/main.pageCache security-advisories.data/CVE-2020-13954.txt.asc security-advisories.html (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [cxf-commits] 20210402 svn commit: r1073270 - in /websites/production/cxf/content: cache/main.pageCache security-advisories.data/CVE-2021-22696.txt.asc security-advisories.html (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [cxf-commits] 20210616 svn commit: r1075801 - in /websites/production/cxf/content: cache/main.pageCache index.html security-advisories.data/CVE-2021-30468.txt.asc security-advisories.html (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-jc7r-v6fg-2gpf (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2018-8039)Record last updated .