Back to CVE catalog
CVE-2018-8039

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

Attack complexityHigh
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS summary v3.0

8.1High
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 and affected versions
Vendor:Apache Software FoundationApache CXFAffected versions:
prior to 3.1.16Show full version range for Apache CXF
3.2.x prior to 3.2.5
Vendor:Red HatRed Hat Fuse 7.2Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat JBoss A-MQ 6.3Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat JBoss EAP 7.1Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat JBoss Enterprise Application Platform 7.1 for RHEL 6 ServerAffected versions:Source does not specify a version range
Vendor:Red HatRed Hat JBoss Enterprise Application Platform 7.1 for RHEL 7 ServerAffected versions:Source does not specify a version range
Vendor:Red HatRed Hat JBoss Fuse 6.3Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat OpenShift Application RuntimesAffected versions:Source does not specify a version range
Vendor:Red HatRed Hat Single Sign-On 7.2Affected versions:Source does not specify a version range
Vendor:Red HatRed Hat Single Sign-On 7.2.4 zipAffected 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:H
CVE-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:H
Red 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:P

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories29

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