HIGH 8.1

CVE-2018-8039

Apache CXF TLS hostname verification does not work correctly with com.sun.net.ssl.*

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.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.apache.cxf » apache-cxf
< 3.1.16>= 3.2.0, < 3.2.5
3.1.16, 3.2.5
org.apache.cxf » cxf-rt-transports-http
< 3.1.16>= 3.2.0, < 3.2.5
3.1.16, 3.2.5

Blast radius

2affected artifacts
1,338affected versions
6,801dependent artifacts (est.)
219,535dependent versions

57% of the dependent artifacts (3,879) still pull an affected version in their latest release.

DepthDependent versions
Direct
34,928
2 hops
69,682
3 hops
49,796
4 hops
29,409
5 hops
23,222
6 hops
12,498

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Advisorygithub.com
Packagegithub.com
Webgithub.com
Webgithub.com
Weboracle.com
Weboracle.com
Weboracle.com
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Weblists.apache.org
Webcxf.apache.org
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Webaccess.redhat.com
Websecurityfocus.com
Websecuritytracker.com