Improper exception propagation in TLS hostname verification in Apache CXF
Apache Software Foundation Apache CXF
At a glance
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.
Source description · CVE List / CNA
System impact
CVSS summary v3.0
- Published:
- Updated:
- EPSS:
- 8.209%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Network
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:Apache Software Foundation | Apache CXF | Affected versions:prior to 3.1.16Show full version range for Apache CXF3.2.x prior to 3.2.5 |
| Vendor:Red Hat | Red Hat Fuse 7.2 | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat JBoss A-MQ 6.3 | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat JBoss EAP 7.1 | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 Server | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 Server | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat JBoss Fuse 6.3 | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat OpenShift Application Runtimes | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Single Sign-On 7.2 | Affected versions:Source does not specify a version range |
| Vendor:Red Hat | Red Hat Single Sign-On 7.2.4 zip | Affected versions:Source does not specify a version range |
1–10 of 14 · Page 1 of 2
CVSS scores and metrics4
[email protected] · NVD (Primary)Primary8.1 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HCVE-2018-8039 · OSV (source-vector)8.1 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HRed Hat · Red Hat VEX (adp)6.5 / 10MediumCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
- Attack vector
- Network
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N[email protected] · NVD (Primary)6.8 / 10MediumCVSS 2.0Details
- Attack complexity
- Medium
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
- Attack vector
- Network
- Authentication
- Not required
Source vector
AV:N/AC:M/Au:N/C:P/I:P/A:PCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories29
- CVE List / CNA
- NVD
- OSV
- Red Hat VEX
- FIRST EPSS
- securitytracker.com
- securityfocus.com
- oracle.com
- oracle.com
- oracle.com
- cxf.apache.org
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- access.redhat.com
- lists.apache.org
- access.redhat.com
- access.redhat.com
- github.com
- lists.apache.org
- access.redhat.com
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences