Security mailing lists by PureSourceCode

CVE-2018-8039

HIGH 8.1CVSS 3.0

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

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.

Published
2 Jul 2018
Last modified
17 Jun 2026
Assigned by
security@apache.org
NVD status
Modified
Weakness
CWE-755
Also known as
GHSA-jc7r-v6fg-2gpf
Sources
NVDJSONOSV GHSA-jc7r-v6fg-2gpfJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 HIGH 8.1 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.0 HIGH 8.1 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apache cxf
cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*
< 3.1.16 3.1.16
NVD apache cxf
cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*
>= 3.2.0, < 3.2.5 3.2.5
NVD redhat jboss_enterprise_application_platform
cpe:2.3:a:redhat:jboss_enterprise_application_platform:7.1.0:*:*:*:*:*:*:*
= 7.1.0
OSV Maven org.apache.cxf:cxf-rt-transports-http >= 3.2.0, < 3.2.5 3.2.5
OSV Maven org.apache.cxf:cxf-rt-transports-http < 3.1.16 3.1.16
OSV Maven org.apache.cxf:apache-cxf >= 3.2.0, < 3.2.5 3.2.5
OSV Maven org.apache.cxf:apache-cxf < 3.1.16 3.1.16

References

History

  • 25 Nov 2026 20:21 UTC · NVD: first stored (published 2 Jul 2018)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 Oct 2018)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.